Coder Social home page Coder Social logo

[metadata.tvmaze (1.0.1)]: *** Unhandled exception detected: <class 'ValueError'> invalid literal for int() with base 10 about kodi.tvmaze HOT 16 CLOSED

romanvm avatar romanvm commented on June 11, 2024
[metadata.tvmaze (1.0.1)]: *** Unhandled exception detected: invalid literal for int() with base 10

from kodi.tvmaze.

Comments (16)

KarellenX avatar KarellenX commented on June 11, 2024

It looks like you are using the TVDB <epidoseguide> while using TVMaze scraper.

I guess you originally scraped your show with TVDB, now you have decided to change scrapers mid-show and are trying to add new episodes to the existing show in your library.

That won't work.

Once you scrape a show with a specific scraper, you need to continue to use it for subsequent scrapes of new episodes of the show. If you want to change scrapers, then you need to Refresh the TV Show (no need to refesh the episodes)

Of course I could be wrong, but I wouldn't know because you did not provide a full log!!

from kodi.tvmaze.

romanvm avatar romanvm commented on June 11, 2024

It's a known bug of Kodi (not this scraper): xbmc/xbmc#16979

For now the solution is ether to edit your .NFO files and remove episodeguide section or to remove .NFO files completely.

from kodi.tvmaze.

nSpecter avatar nSpecter commented on June 11, 2024

Excellent! I see you're on it.

Thanks to both of you for the valuable input.

I did some quantification/experimentation with the new information.

I took the first broken Series(1) in the error log and removed <episodeguideurl>blahblahblah</episodeguideurl> from it's tvshow.nfo file.

I took the second broken Series(2) and removed <episodeguide>blahblahblah</episodeguide>

I took the third broken Series(3) and removed both lines.

I then loaded Kodi and it performed its scan with the usual bunch of error notifications.

The first broken Series(1) DID come in successfully and is now in the Kodi library. Series(2) and Series(3) did NOT get scanned into the library. Examining the Kodi log file shows the Series(1)'s error has been replaced with a new error (below) and the other two do not appear to have changed. All subsequent errors have also not changed (as I have not yet edited their tvshow.nfo files)

The new error for Series(1) is:

New Series(1) Error.txt

Continuing testing, I changed Series(2)'s NFO file to remove the remaining <episodeguideurl>blahblahblah</episodeguideurl>, effectively making it the same as Series(3) with both lines removed. I then loaded Kodi and let it scan.

As I anticipated, Series(2) did NOT get scanned into the library. As far as I can tell it is still producing the same error message in the Kodi log file. Ditto with Series(3).

NOTE: Series(1) did NOT reproduce the new SSL error or any other error. It appears to have been successfully scanned into the library and that series is fixed.

Continuing testing, I added back into the Series(2) NFO file the original <episodeguide>blahblahblah</episodeguide>, effectively making it the same as Series(1) with <episodeguideurl> removed. I then loaded Kodi and let it scan.

Much to my surprise, Series(2) did NOT scan into the library. o.0 Kodi's log file was unenlightening with the same old "invalid literal for int() with base 10" error.

I went ahead and changed Series(3) to be the same as Series(1) was and gave it a go.

That did not fix it. They did NOT scan in. :(

The only difference I can identify between Series(1) and the other two is that Series(1) did not have any UNWATCHED episodes (and thus was not displayed on Kodi's TV series menu [but does now]) whilst the other two do have unwatched episodes and do appear on Kodi's series menu but will NOT bring these new episodes in.

Alas, I'm officially stuck. I cannot think of anything further to try.

Any suggestions for getting these episodes in?

from kodi.tvmaze.

KarellenX avatar KarellenX commented on June 11, 2024

If you would only provide a full log and make it easier for us!!!!

So I ask you clearly Please provide a full debug log We do NOT want snippets that you think are important or relevant.

Also read about the episodeguide url here...
https://kodi.wiki/view/NFO_files/TV_shows#episodeguide_URL

Also there is no such tag as <episodeguideurl>
But there is an <episodeguide> tag

from kodi.tvmaze.

romanvm avatar romanvm commented on June 11, 2024

I agree, a full debug log is needed.

from kodi.tvmaze.

nSpecter avatar nSpecter commented on June 11, 2024

Thanks a million for the help. One Kodi debug log comin' up!

kodi.debug.log.txt

from kodi.tvmaze.

KarellenX avatar KarellenX commented on June 11, 2024

Your log paints a different picture to your first post. You are using v19 and you are using NFO files both important points which you failed to mention in your first post.

And I still feel this is only part of the picture, because you won't answer questions or comments that have been directed to you.

I guess you originally scraped your show with TVDB, now you have decided to change scrapers mid-show and are trying to add new episodes to the existing show in your library.

Response required.

Once you scrape a show with a specific scraper, you need to continue to use it for subsequent scrapes of new episodes of the show. If you want to change scrapers, then you need to Refresh the TV Show (no need to refesh the episodes)

Response required

Also read about the episodeguide url here...
https://kodi.wiki/view/NFO_files/TV_shows#episodeguide_URL

Did you read this? Did you understand it? Do you have any comments or questions?

Also there is no such tag as <episodeguideurl>
But there is an <episodeguide> tag

Typ-o or the cause of your problems?

Your problem should have been raised on the forum. But I will let romanvm decide how to proceed.

from kodi.tvmaze.

KarellenX avatar KarellenX commented on June 11, 2024

Just a further comment...

You are using Sonarr to create NFO Files, who uses TVDB to scrape metadata from TVDB (Not TVMaze) and another thing that should have been mentioned in the first post.

Sonarr are known for their non-compatible NFO Files and they are still using TVDB v1 API while Kodi uses v2 API and no longer recognises v1.

Read here... https://forum.kodi.tv/showthread.php?tid=323588

And I would appreciate you reading before posting a barrage of further questions/comments.

As far as I can see this is user error and no issue with the scraper.

from kodi.tvmaze.

nSpecter avatar nSpecter commented on June 11, 2024

My apologies. I'm greatly ignorant to most all of this, so I have little grounds for understanding and parsing what's-what or what is important and what isn't. Please bear with me.

You are using v19 and you are using NFO files both important points which you failed to mention in your first post.

That is correct. It's not that I won't answer questions, it's just that I failed to understand the significance of it, so it didn't cross my mind to mention it.

I guess you originally scraped your show with TVDB, now you have decided to change scrapers mid-show and are trying to add new episodes to the existing show in your library.

That is correct. For years I've used TheTVDB but due to periodic issues with their recalcitrant admins, compounded by their first attempt to upgrade their site and its subsequent roll-back, caused me to seek another solution, whereupon I ran across TVMaze in the (Reddit?) forums.

In Kodi I changed the scraper for TV shows to TVMaze and it prompted me whether I wished to rescan the entire library and I responded to the affirmative and left it to do its thing. When I came back I found everything working fine. And it worked fine for a number of months. Up until TheTVDB did their most recent change and started causing spurious errors, both in Sonarr and in Kodi with TVMaze. Which ultimately resulted in this post to you, seeking information/solutions.

Once you scrape a show with a specific scraper, you need to continue to use it for subsequent scrapes of new episodes of the show. If you want to change scrapers, then you need to Refresh the TV Show (no need to refesh the episodes)

If you are referring to the optional scan performed when you select a new scraper in Kodi and it asks if you want to rescan the library, I did that, it did that and life was peachy for a period of time. If you're not referring to that, then I do not have the foggiest of clues as to what you're referring to when you say, "Refresh the TV Show (no need to refesh the episodes)". ¯\_(ツ)_/¯

[reference to a wiki page] Did you read this? Did you understand it? Do you have any comments or questions?

Until now, I did not know of its existence and I dare say I have not read the entirety of the wiki site, cover-to-cover (and likely wouldn't understand most of it). I will give that page a good, solid read forthwith.

Also there is no such tag as <episodeguideurl>
But there is an <episodeguide> tag

Typ-o or the cause of your problems?

I don't know how to respond to that. Other than to say that ALL of the tvshow.nfo files I have looked at contain <episodeguide> AND <episodeguideurl> as a pair. One after the other, both referencing the same URL. What that means, I have no idea. Where it comes from, I have no idea. Is it normal or an anomaly, I have no idea. This is all Greek to me.

You are using Sonarr to create NFO Files, who uses TVDB to scrape metadata from TVDB (Not TVMaze) and another thing that should have been mentioned in the first post.

This is all Greek to me.

Read here...

Will do.

And I would appreciate you reading before posting a barrage of further questions/comments.

I shall endeavour to do so. And rest assured your annoyance is coming through loud and clear. Also rest assured I have attempted to perform my due diligence with testing, pouring over log files and thoughtful analysis before bringing my problem here. The information at my disposal, primarily the error messages in the log files, combined with a limited understanding of how any of this stuff works, lead me inexorably to seek a solution here.

Keep in mind: YOU live and breath this stuff. Its every nuance carries meaning and import. Intrepid explorers like me who come here seeking help are likely to be wholly ignorant and drowning in unfamiliar, mysterious detail. A little less brash annoyance would be... friendlier. ;)

Thanks again for your help. It truly is appreciated. Now, I'm off to study those links you gave me and hopefully a solution to this mysterious quandary is just over the horizon.

TTFN :)

from kodi.tvmaze.

KarellenX avatar KarellenX commented on June 11, 2024

No need to read the wiki from cover to cover, I only point you to pages that are relevant to the issue at hand, and only so I don't have to repeat myself. Sure I can copy and paste sections of the wiki into a post perfectly curated for you, but you could just as easily click the link and read the section I pointed to.

Keep in mind: YOU live and breath this stuff.

Well forgive me because the way you wrote and worded your first post with your extracts of errors, I had the impression you were knowledgeable. So if you had no idea what you were doing, then provide the full log. Was I annoyed... yes. Because I asked once for a debuglog and you did not provide it. I asked you some questions, and there was not one word back from you in feedback that indicated whether what I referred to was or was not part of the problem, so you kept responding but being completely unhelpful.

have looked at contain <episodeguide> AND <episodeguideurl> as a pair.

That is not Kodi. I guess this is Sonarr creating non-compliant tags, most likely to accommodate another media centre that uses that tag. Must admit I have not seen its use before. Kodi uses <episodeguide>

in Kodi I changed the scraper for TV shows to TVMaze and it prompted me whether I wished to rescan the entire library and I responded to the affirmative and left it to do its thing. When I came back I found everything working fine.

I think something has gone wrong there because it is clear that the Kodi database still holds TVDB references instead of TVMaze references. But your use of Sonar NFO files is most likely responsible for this. If you have nfo files in your folder, then no matter what scraper you use, and no matter how many times you try to scrape, the NFO Files will be scanned because Kodi uses local files first. Always! So you may have rescanned and let Kodi "do its thing" and its thing was to rescan NFO files, so nothing changed.

So I must admit I am confused about your workflow. You obviously use Sonarr to create nfo files, so what is the deal with trying to change scrapers? If you have nfo files, no scrapers will be used apart from some initial checks in the scanning process. Certainly nothing will be scraped from the online sources.

from kodi.tvmaze.

nSpecter avatar nSpecter commented on June 11, 2024

So I must admit I am confused about your workflow.

You and me, both. :)

You obviously use Sonarr to create nfo files, so what is the deal with trying to change scrapers? If you have nfo files, no scrapers will be used apart from some initial checks in the scanning process. Certainly nothing will be scraped from the online sources.

All I know is, though I've been a Kodi user for years, this particular Kodi install is largely a default installation per a typical walk-through posted on the Internet, It's even still using the Confluence skin.

Sonarr is largely a default installation (per walk-throughs) as is Radarr and they just do their things and Sonarr moves downloaded episodes to the appropriate volume/directory with an NFO file. And there it sits forever--with Kodi none the wiser-- UNTIL you either,

  • Go into TV Shows -> Options -> "Update Library" or
  • Turn on System -> Media -> Library -> Video Library -> "Update library on Startup" (which is what I have)

If you don't "Update Library", Kodi never sees the new episodes in the Series/Season folder. And that's where the TVMaze (or TVDB) scraper comes in. "Update Library" scans for new content and imports it into Kodi's database, yes? And it scrapes JPGs and banners and fanart and what-have-you, yes?

That's what is not happening. For just these few shows.

For other shows, new episodes appear to be importing just fine with TVMaze. I just now looked at a few recently imported episodes and those shows have the exact same tvshow.nfo XML lines as the shows that TVMaze chokes on. But the scraper (or whatever this problem is) doesn't appear to be having a problem with those shows. So, why these? ¯\_(ツ)_/¯

from kodi.tvmaze.

KarellenX avatar KarellenX commented on June 11, 2024

"Update Library" scans for new content and imports it into Kodi's database, yes? And it scrapes JPGs and banners and fanart and what-have-you, yes?

Yes and yes.

For other shows, new episodes appear to be importing just fine with TVMaze. I just now looked at a few recently imported episodes and those shows have the exact same tvshow.nfo XML lines as the shows that TVMaze chokes on. But the scraper (or whatever this problem is) doesn't appear to be having a problem with those shows. So, why these? ¯_(ツ)_/¯

Ok, the crux of the problem. So while the debug log helps narrowing down the problem, I will need to see the following...

  1. tvshow.nfo file from a tvshow that allows scanning of new episodes
  2. tvshow.nfo file from a tvshow that "chokes" when adding new episodes.
    Both pasted to https://paste.kodi.tv/ separately
  3. Your MyVideosxx.db database, zipped and uploaded to a file sharing service so I can download.

Let's not forget that Sonarr/Radar have non-compatible files and are still using the v1 API. But I would like to see why some shows work, and some don't.

from kodi.tvmaze.

nSpecter avatar nSpecter commented on June 11, 2024
  1. tvshow.nfo file from a tvshow that allows scanning of new episodes
    These two imported fine two days ago,
    Law & Order:SVU
    QI
  1. tvshow.nfo file from a tvshow that "chokes" when adding new episodes.
    These two produce errors and have numerous unimported episodes pending
    Grantchester
    Vikings

MyVideos116.db.zip

from kodi.tvmaze.

KarellenX avatar KarellenX commented on June 11, 2024

Thanks. I see Sonarr have fixed their nfo files since the last time I looked at them... except for the episodguide which still pretty much makes them useless.

So you have no TVMaze episode guides for any show in the database.

You have a few tv shows with the correct v2 API for the TVDB (green). These will work if you switch back to the TVDB scraper. All you other shows are v1 and won't work (red). See image below. None of your shows will work with TV Maze scraper as they are now.

episodeguide

So like I said in my very first post to you, you cannot switch scrapers mid-scrape. You cannot use TV Maze with TVDB links. They are two completely different sites completely unrelated to each other.

As for why one show works and another doesn't, no idea. I cannot figure this out remotely and with the peculiar setup you have. All I can tell you is to stop using Sonarr nfo files, and just scrape your tv shows using Kodi. Most of the episodeguides are wrong and need to be replaced and how to do that is explained in one of the links I gave you, and in one of my previous posts.

from kodi.tvmaze.

nSpecter avatar nSpecter commented on June 11, 2024

Okay, thanks for your help. I'm going to hang my hat up on this for the evening. Tomorrow, if I can, I'll hunker down and dig further into the information you've given me.

Have a wonderful morn/day/evening, wherever you are. :D

from kodi.tvmaze.

nSpecter avatar nSpecter commented on June 11, 2024

I'm going to close this issue because it ultimately became moot.

I went back to TheTVDB and it instantly worked. And scans much faster, to boot.

It's too bad we couldn't find a solution. I dislike unresolved issues. :/

from kodi.tvmaze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.