Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[noco.tv] TypeError: Can't convert 'int' object to str implicitly #6066
Comments
[noco.tv] Fix issue #6066: title interpreted as integer
When a video has only a number as title, it's interpreted as integer instead of string and leads to TypeError.
Example: http://noco.tv/emission/6158/nolife/retro-magic/218-1941
Looking at the dumps with --write-pages, indeed the title is interpreted as integer and JSONed as such:
,"show_OT":1941,,"show_TT":1941,While I don't have Python programming experience, I notice the issue seems fixed when using the
compat_str()function ontitle += ' - ' + episode(line 198 in the noco extractor). While I had no visible issue with some other videos, I'm not sure it doesn't break stuff. I'll do a PR.