emericg / OpenSubtitlesDownload

Automatically find and download the right subtitles for your favorite videos!
https://emeric.io/OpenSubtitlesDownload
GNU General Public License v3.0
607 stars 66 forks source link

fix (#105): NameError: name 'item' is not defined #108

Closed YoureMySoul closed 10 months ago

YoureMySoul commented 10 months ago

It appears that the 'item' variable had been forgotten outside of the 'for' loop. To fix this issue, I moved the if checks to be inside of the for loop.

If this pull request is not appropriate for the project, please, feel free to let me know or ignore me.
emericg commented 10 months ago

The fix is even simpler than that, can you confirm this works?

YoureMySoul commented 10 months ago

Thank you. This also works.

emericg commented 10 months ago

Thank you for pinpointing this issue :)