Exemplo n.º 1
0
def getPlayListBasicVideo(playListItem, myRow):
    '''
    This function will export and return the basic info
    for the Playlist for movie/tv-shows types
    '''
    # Get Studio
    myRow['Studio'] = misc.GetRegInfo(playListItem, 'studio', 'N/A')
    # Get Content Rating
    myRow['Content Rating'] = misc.GetRegInfo(playListItem, 'contentRating',
                                              'N/A')
    # Get Tagline
    myRow['Tagline'] = misc.GetRegInfo(playListItem, 'tagline', 'N/A')
    # Get Duration
    myRow['Duration'] = misc.ConvertTimeStamp(
        misc.GetRegInfo(playListItem, 'duration', '0')).encode('utf8')
    # Get Originally Available At
    myRow['Originally Available At'] = misc.GetRegInfo(
        playListItem, 'originallyAvailableAt', 'N/A')
    # Get Added At
    myRow['Added At'] = misc.ConvertDateStamp(
        misc.GetRegInfo(playListItem, 'addedAt',
                        '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(
                            misc.GetRegInfo(playListItem, 'addedAt',
                                            '0')).encode('utf8')
    # Get Updated At
    myRow['Updated At'] = misc.ConvertDateStamp(
        misc.GetRegInfo(playListItem, 'updatedAt',
                        '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(
                            misc.GetRegInfo(playListItem, 'updatedAt',
                                            '0')).encode('utf8')
    return myRow
Exemplo n.º 2
0
def getPlayListSimpleVideo(playListItem, myRow):
    '''
    This function will export and return the simple info for the
    Playlist for video types
    '''
    # Get the Playlist ItemID
    myRow['Playlist ItemID'] = misc.GetRegInfo(playListItem, 'playlistItemID')
    # Get the media ID
    myRow['Media ID'] = misc.GetRegInfo(playListItem, 'ratingKey')
    # Get media type
    myRow['Type'] = misc.GetRegInfo(playListItem, 'type')
    # Get media title
    myRow['Title'] = misc.GetRegInfo(playListItem, 'title')
    # Get TV-Show name
    myRow['TV-Show'] = misc.GetRegInfo(playListItem, 'grandparentTitle', 'N/A')
    # Get Rating
    myRow['Rating'] = misc.GetRegInfo(playListItem, 'rating', 'N/A')
    # Get Summary
    myRow['Summary'] = misc.GetRegInfo(playListItem, 'summary', 'N/A')
    # Get year
    myRow['Year'] = misc.GetRegInfo(playListItem, 'year', 'N/A')
    # Get studio
    myRow['Studio'] = misc.GetRegInfo(playListItem, 'studio', 'N/A')
    # Get Duration
    myRow['Duration'] = misc.ConvertTimeStamp(
        misc.GetRegInfo(playListItem, 'duration', '0')).encode('utf8')
    # Grab the FileName(s)
    myRow['File Name'] = getFileNamesFromObject(playListItem)
    return myRow
Exemplo n.º 3
0
def getPlayListSimpleAudio(playListItem, myRow):
    '''
    This function will export and return the simple info for the
    Playlist for audio types
    '''
    # Get the Playlist ItemID
    myRow['Playlist ItemID'] = misc.GetRegInfo(playListItem, 'playlistItemID')
    # Get the media ID
    myRow['Media ID'] = misc.GetRegInfo(playListItem, 'ratingKey')
    # Get media type
    myRow['Type'] = misc.GetRegInfo(playListItem, 'type')
    # Get media title
    myRow['Title'] = misc.GetRegInfo(playListItem, 'title')
    # Get Artist name
    myRow['Artist'] = misc.GetRegInfo(playListItem, 'grandparentTitle', 'N/A')
    # Get Album name
    myRow['Album'] = misc.GetRegInfo(playListItem, 'parentTitle', 'N/A')
    # Get Summary
    myRow['Summary'] = misc.GetRegInfo(playListItem, 'summary', 'N/A')
    # Get year
    myRow['Year'] = misc.GetRegInfo(playListItem, 'year', 'N/A')
    # Get Artist name
    myRow['Original Title'] = misc.GetRegInfo(playListItem, 'originalTitle',
                                              'N/A')
    # Grab the FileName(s)
    myRow['File Name'] = getFileNamesFromObject(playListItem)
    # Get Duration
    myRow['Duration'] = misc.ConvertTimeStamp(
        misc.GetRegInfo(playListItem, 'duration', '0')).encode('utf8')
    return myRow
Exemplo n.º 4
0
def getPlayListBasicAudio(playListItem, myRow):
	# Get Rating count
	myRow['Rating Count'] = misc.GetRegInfo(playListItem, 'ratingCount', 'N/A')
	# Get Duration
	myRow['Duration'] = misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'duration', '0')).encode('utf8')
	# Get Added At
	myRow['Added At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8')
	# Get Updated At
	myRow['Updated At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8')
	return myRow
Exemplo n.º 5
0
def getPlayListBasicPhoto(playListItem, myRow):
    '''
    This function will export and return the basic info for
    the Playlist for photo types
    '''
    # Get Originally Available At
    myRow['Originally Available At'] = misc.GetRegInfo(
        playListItem, 'originallyAvailableAt', 'N/A')
    # Get Added At
    myRow['Added At'] = misc.ConvertDateStamp(
        misc.GetRegInfo(playListItem, 'addedAt',
                        '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(
                            misc.GetRegInfo(playListItem, 'addedAt',
                                            '0')).encode('utf8')
    # Get Updated At
    myRow['Updated At'] = misc.ConvertDateStamp(
        misc.GetRegInfo(playListItem, 'updatedAt',
                        '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(
                            misc.GetRegInfo(playListItem, 'updatedAt',
                                            '0')).encode('utf8')
    return myRow
Exemplo n.º 6
0
def getPlayListBasicAudio(playListItem, myRow):
    '''
    This function will export and return the basic info for the
    Playlist for audio types
    '''
    # Get Rating count
    myRow['Rating Count'] = misc.GetRegInfo(playListItem, 'ratingCount', 'N/A')
    # Get Added At
    myRow['Added At'] = misc.ConvertDateStamp(
        misc.GetRegInfo(playListItem, 'addedAt',
                        '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(
                            misc.GetRegInfo(playListItem, 'addedAt',
                                            '0')).encode('utf8')
    # Get Updated At
    myRow['Updated At'] = misc.ConvertDateStamp(
        misc.GetRegInfo(playListItem, 'updatedAt',
                        '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(
                            misc.GetRegInfo(playListItem, 'updatedAt',
                                            '0')).encode('utf8')
    # Grab the FileName(s)
    myRow['File Name'] = getFileNamesFromObject(playListItem)
    return myRow
Exemplo n.º 7
0
def getPlayListBasicVideo(playListItem, myRow):
	# Get Studio
	myRow['Studio'] = misc.GetRegInfo(playListItem, 'studio', 'N/A')
	# Get Content Rating
	myRow['Content Rating'] = misc.GetRegInfo(playListItem, 'contentRating', 'N/A')
	# Get Tagline
	myRow['Tagline'] = misc.GetRegInfo(playListItem, 'tagline', 'N/A')
	# Get Duration
	myRow['Duration'] = misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'duration', '0')).encode('utf8')
	# Get Originally Available At
	myRow['Originally Available At'] = misc.GetRegInfo(playListItem, 'originallyAvailableAt', 'N/A')
	# Get Added At
	myRow['Added At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8')
	# Get Updated At
	myRow['Updated At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8')
	return myRow
Exemplo n.º 8
0
def getPlayListBasicPhoto(playListItem, myRow):
	# Get Originally Available At
	myRow['Originally Available At'] = misc.GetRegInfo(playListItem, 'originallyAvailableAt', 'N/A')
	# Get Added At
	myRow['Added At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8')
	# Get Updated At
	myRow['Updated At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8')
	return myRow
Exemplo n.º 9
0
def getPlayListBasicAudio(playListItem, myRow):
	# Get Rating count
	myRow['Rating Count'] = misc.GetRegInfo(playListItem, 'ratingCount', 'N/A')
	# Get Added At
	myRow['Added At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'addedAt', '0')).encode('utf8')
	# Get Updated At
	myRow['Updated At'] = misc.ConvertDateStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8') + ' ' + misc.ConvertTimeStamp(misc.GetRegInfo(playListItem, 'updatedAt', '0')).encode('utf8')
	# Grab the FileName(s)
	myRow['File Name'] = getFileNamesFromObject(playListItem)
	return myRow