-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore website episode titles when meta data is disabled #80
Comments
Its a bug in build_listitems(), change the disp_title = '....' else: # Metadata off There is also a bug with META ON: Change meta['title'] to meta['TVShowTitle'] Greetz from Germany |
or easier: add this meta['title'] = meta['TVShowTitle'] if META_ON: Then you don't need to change the rest ;) |
I'll take a look at it today. I'm messing with this code today anyway. |
This bug is about episode titles not showing in the episode view when metadata is turned off. What you've suggested won't fix that. In the first suggestion, "title" is the title of the show, not the episode. In the 2nd suggestion, that's code is only executed when metadata is on, which makes it unrelated to this issue. The goal here woudl be to parse out the episode titles that are in the season fragment and pass them into build_listitem so that they can be used when metadata is off. The problem with simply passing the episode title in as "title" though breaks when metadata is turned on. In other words, this is a more complex bug that it seems at first. ;-) |
Please have a look into the code: Method build_listitems() (837) is called in create_item() (798) which is called in TVShowEpisodeList() (1085) If the variable META_ON is true, it is getting his value into the list meta['TVShowTitle'] but if the listitem is build it is sending it to meta['title'](check 944) which is empty. I assume in previous revisions it was saved in meta['title']. If META_ON is not true, the variable disp_title is getting only season and episode (check line 952). |
I already checked the code. I agree that disp_title is only getting season and episode when metadata is off. That's only part of the problem though. The other part of the problem is the EPISODE title is not currently available in build_listitem when presenting the episode view. The TV Show Title is available and is in the "title" variable, which doesn't help. |
replace the build_items() method with this:
And I forgot to mention I did changed also in the method TVShowEpisodeList()
to
|
That breaks when metadata is turned on. get_episode_meta expects "title" to be the show title, not the epsiode title. The reason your test cases have probably worked is metahandlers only uses the show title when imdbid is blank. |
No description provided.
The text was updated successfully, but these errors were encountered: