openzim / youtube

Create a ZIM file from a Youtube channel/username/playlist
GNU General Public License v3.0
53 stars 29 forks source link

An error occurred: Not a valid iso language name/code #112

Closed outusuke closed 4 years ago

outusuke commented 4 years ago

I'm getting this error

and also subtitles embedded in the video do not load when choosing it in the player

satyamtg commented 4 years ago

I'm getting this error

and also subtitles embedded in the video do not load when choosing it in the player

Could you please share the exact command that you used to run? This seems to be an error raised by scraperlib if it cannot find the language you supplied in the list of valid languages.

outusuke commented 4 years ago

I'm getting this error and also subtitles embedded in the video do not load when choosing it in the player

Could you please share the exact command that you used to run? This seems to be an error raised by scraperlib if it cannot find the language you supplied in the list of valid languages.

youtube2zim-playlists --api-key AIzaSyBXp2uwcvKz--0Ha9d8CoxXnRqCTYnwgM4 --type playlist --id PLJicmE8fK0Eje0WZ4V1k51nK2-1hvOt2D --output Downloads/nutshell/ --name learn --format mp4

also happens when using --all-subtitles

satyamtg commented 4 years ago

This one was due to iw in the subtitle language codes, but it is not an iso-639-1 code (it was deprecated) which the scraperlib module expects. This error is fixed in #113 . You can look at https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes#HE for more information. BTW, thanks for reporting.