emericg / OpenSubtitlesDownload

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

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

Closed YoureMySoul closed 8 months ago

YoureMySoul commented 8 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 8 months ago

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

YoureMySoul commented 8 months ago

Thank you. This also works.

emericg commented 8 months ago

Thank you for pinpointing this issue :)