mirror of
https://github.com/blacktwin/JBOPS.git
synced 2025-12-11 19:37:18 +00:00
including @sdlynx contribution
This commit is contained in:
parent
5dcc0cb515
commit
e5a1f7fba0
@ -145,9 +145,12 @@ def main():
|
|||||||
break
|
break
|
||||||
if not artistSearch or len(artistSearch) == 0:
|
if not artistSearch or len(artistSearch) == 0:
|
||||||
print(u"Could not find in Plex:\n\t{} - {} {}".format(artist, album, title))
|
print(u"Could not find in Plex:\n\t{} - {} {}".format(artist, album, title))
|
||||||
print("Adding Playlist: {}".format(playlistName))
|
if len(playlistContent) != 0:
|
||||||
print("Google Music Playlist: {}, has {} tracks. {} tracks were added to Plex.".format(
|
print("Adding Playlist: {}".format(playlistName))
|
||||||
playlistName, len(pl['tracks']), len(playlistContent)))
|
print("Google Music Playlist: {}, has {} tracks. {} tracks were added to Plex.".format(
|
||||||
plex.createPlaylist(playlistName, playlistContent)
|
playlistName, len(pl['tracks']), len(playlistContent)))
|
||||||
|
plex.createPlaylist(playlistName, playlistContent)
|
||||||
|
else:
|
||||||
|
print("Could not find any matching tracks in Plex for {}".format(playlistName))
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user