Thanks.
just to let you know on the wiki stay something about case insensitive (explicitly marked)
Anyway, I changed the media_setup.py, deleted the .pyo (it will compile again), deleted the cache db, but still getting dvd as disctype.
I see in the file the call for the function:
PHP Code:
disctype = media_disctype(item.get('file','').encode('utf-8').lower(), item['streamdetails']['video'])
There is already a .lower(). So there is some where another problem maybe.
How can I put a debug line? With log() it doesn't work. Ok it did work, but not there as I would like ...
OK, I found the bug.
I'm not the python specialist (actually today is my first day
), but some minor programming skills and the way you search a string in a string (with multiple needle) does not work.
I just tried with a single string in the condition and it did work:
PHP Code:
elif ('bdrip' in filename):
Now I have to look for a multiple needle search in python and we can get this fixed and updated.
And with this one it works with multiple needles:
PHP Code:
elif any(x in filename for x in ['bluray', 'blu-ray', 'brrip', 'bdrip']):
Don't know if it is the best way. Now have to look about the other conditions.
How to get this into the github?
---------------------------------------------
PHP Code:
if (('dvd') in filename and not any(x in filename for x in ['hddvd', 'hd-dvd']) or (filename.endswith('.vob') or filename.endswith('.ifo'))):
disctype = 'dvd'
elif ('3d' in filename and not 'ac3d' in filename):
disctype = '3d'
elif any(x in filename for x in ['bluray', 'blu-ray', 'brrip', 'bdrip']):
With these changes AD will find all discs for my collection (where applicable). There are some 'hdrip' or 'webrip' but they are normally dvd resolution, so the resolution check will do the rest. As they are not really from a disc source it should not download one.
Also there are dubbed rips tagged as 'ac3d' and AD will recognize them as 3D, so changed the condition.
Where should I ask for a new feature?