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...
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
....
...
...
Additional context Nice tool you have created. FInd it very useful...