You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem
Compare / list language and make it available for auto delete
Describe any solutions you think might work
Something like that might work... important is "item.reload()", otherwise AudioStream info is not provided.
...
# loop returned duplicates
for item in dupes:
item.reload()
languages = []
for media in item.media:
#print(media)
for part in media.parts:
#print(part)
for stream in part.streams:
if type(stream) is plexapi.media.AudioStream:
#print(type(stream))
#print(stream, end=', ')
#print(stream.codec , end=', ')
#print(stream.languageCode)
languages.append(stream.languageCode)
....
elif 'languages' in k:
tmp.append(parts[item_id][k])
...
#add language to score
if 'ger' in media_info["languages"]:
score+=20000
...
Additional context
Nice tool you have created. FInd it very useful...
The text was updated successfully, but these errors were encountered:
Describe the problem
Compare / list language and make it available for auto delete
Describe any solutions you think might work
Something like that might work... important is "item.reload()", otherwise AudioStream info is not provided.
...
# loop returned duplicates
for item in dupes:
item.reload()
languages = []
for media in item.media:
#print(media)
for part in media.parts:
#print(part)
for stream in part.streams:
if type(stream) is plexapi.media.AudioStream:
#print(type(stream))
#print(stream, end=', ')
#print(stream.codec , end=', ')
#print(stream.languageCode)
languages.append(stream.languageCode)
....
...
...
Additional context
Nice tool you have created. FInd it very useful...
The text was updated successfully, but these errors were encountered: