Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

jamu does not understand my TV series

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


voidtrance at comcast

Nov 14, 2009, 12:54 PM

Post #1 of 11 (969 views)
Permalink
jamu does not understand my TV series

Hi all,

I am trying to setup jamu and I am at the step where I am doing the
initial interactive setup.
I have several TV series in my Videos Storage group and they are all
organized in the following directory structure:

<path to video group>/<series name>/Season 1/01 <episode name>

for example:

/mnt/media/video/Sopranos/Season 1/01 Pilot.avi

When I try to run the interactive jamu session, I get the following:

Now processing video file (01 Pilot)(0)(0)


Entry exists in MythDB but category is 0 and year is 1895 (default values).
Updating (01 Pilot).
1 -> Airplane! (1980) # http://www.imdb.com/title/tt0080339
2 -> Der Pilot (2000) # http://www.imdb.com/title/tt0271717
3 -> Fighter Pilot: Operation Red Flag (2004) # http://www.imdb.com/title/tt0353168
4 -> Flight of Black Angel (1991) # http://www.imdb.com/title/tt0101897
5 -> Hot Shots! (1991) # http://www.imdb.com/title/tt0102059
6 -> I Want to Be a Pilot (2006) # http://www.imdb.com/title/tt0816201
7 -> Jet Pilot (1957) # http://www.imdb.com/title/tt0050562
8 -> Kollektivet Barata - Den gordiska knuten (2001) # http://www.imdb.com/title/tt0325695
9 -> Kurenai no buta (1992) # http://www.imdb.com/title/tt0104652
10 -> Lonely Planet (1994) # http://www.imdb.com/title/tt0209673
11 -> Megami kouhosei (2000) # http://www.imdb.com/title/tt0291343
12 -> Operation of C-1 Autopilot, Part 1: Setting Up for Flight (1943) # http://www.imdb.com/title/tt0184797
13 -> Operation of C-1 Autopilot, Part 2: Setting Up for Bombing (1943) # http://www.imdb.com/title/tt0184798
14 -> Piloto 13 (1930) # http://www.imdb.com/title/tt0200958
15 -> PilotsEYE.tv - Sonderflug 01. Mai 2007: Nordpol (2007) # http://www.imdb.com/title/tt1371581
16 -> Superjail! (2007) # http://www.imdb.com/title/tt1031283
17 -> Test Pilot (1938) # http://www.imdb.com/title/tt0030848
18 -> The Motion Picture Stunt Pilot (1954) # http://www.imdb.com/title/tt0360807
19 -> Theory of the C-1 Autopilot, Part 1: Basic Principles (1943) # http://www.imdb.com/title/tt0184944
20 -> Theory of the C-1 Autopilot, Part 2: Control Panel (1943) # http://www.imdb.com/title/tt0184945
Direct search of IMDB # http://www.imdb.com/find?s=all&q=01+Pilot&x=0&y=0
Enter choice ("Enter" key equals first selection (1)) or input the IMDB
# directly, ? for help):

It seems like jamu is not recongnizing that this video is part of a TV
series and it is trying to query imdb as if it were a movie.

I've tried editing the with_ep_name variable in the configuration file
but that did not change anything.

I am a bit confused on how to setup everything up so any help is
welcomed.
Thank you

--
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


myth at robinhill

Nov 14, 2009, 1:07 PM

Post #2 of 11 (948 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Sat Nov 14, 2009 at 12:54:53PM -0800, Mitko Haralanov wrote:

> Hi all,
>
> I am trying to setup jamu and I am at the step where I am doing the
> initial interactive setup.
> I have several TV series in my Videos Storage group and they are all
> organized in the following directory structure:
>
> <path to video group>/<series name>/Season 1/01 <episode name>
>
> for example:
>
> /mnt/media/video/Sopranos/Season 1/01 Pilot.avi
>
Jamu only looks at the file name - it ignores the directory names
altogether. You'll either need to rename your episodes, or use the
mythvideo metadata updater instead (which looks at the full path).

HTH,
Robin
--
___
( ' } | Robin Hill <myth [at] robinhill> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |


jarpublic at gmail

Nov 14, 2009, 1:14 PM

Post #3 of 11 (946 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

> Jamu only looks at the file name - it ignores the directory names
> altogether.  You'll either need to rename your episodes, or use the
> mythvideo metadata updater instead (which looks at the full path).

Also thetvdb.com is down right now, so you won't be able to trouble
shoot this much further until that is back up. Especially since many
of the automatic renaming utilities use thetvdb.com.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


voidtrance at comcast

Nov 14, 2009, 1:57 PM

Post #4 of 11 (945 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Sat, 14 Nov 2009 21:07:45 +0000
Robin Hill <myth [at] robinhill> wrote:

> Jamu only looks at the file name - it ignores the directory names
> altogether. You'll either need to rename your episodes, or use the
> mythvideo metadata updater instead (which looks at the full path).

This seems like a pretty big shortcoming!

I will try to look through the code and see if I can fix that and have
it start looking at the pathnames as well.

--
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jarpublic at gmail

Nov 14, 2009, 2:01 PM

Post #5 of 11 (943 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

>> Jamu only looks at the file name - it ignores the directory names
>> altogether.  You'll either need to rename your episodes, or use the
>> mythvideo metadata updater instead (which looks at the full path).
>
> This seems like a pretty big shortcoming!
>
> I will try to look through the code and see if I can fix that and have
> it start looking at the pathnames as well.

Mythvideo does look at the path, so you may want to look there and see
if you can just port some of that over.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


voidtrance at comcast

Nov 14, 2009, 2:31 PM

Post #6 of 11 (940 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Sat, 14 Nov 2009 17:01:09 -0500
Johnny <jarpublic [at] gmail> wrote:

> Mythvideo does look at the path, so you may want to look there and see
> if you can just port some of that over.

Thanks for the idea.

I think I might have an idea of how to get jamu to look at the entire
path without changing too much of the code and it's current operation.

However, I can't test anything until the website comes back up.

--
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


voidtrance at comcast

Nov 16, 2009, 1:19 PM

Post #7 of 11 (891 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Sat, 14 Nov 2009 14:31:46 -0800
Mitko Haralanov <voidtrance [at] comcast> wrote:

> I think I might have an idea of how to get jamu to look at the entire
> path without changing too much of the code and it's current operation.
>
> However, I can't test anything until the website comes back up.

Well, the website is still down so I haven't been able to test my
changes put I wanted to post the patch so people could start reviewing
it.

The patch should allow parsing the video filenames (including the
path name) in all the file organization formats that MythTV supports
(from here http://www.mythtv.org/wiki/MythVideo_File_Parsing). It first
tries to parse the filename using the default regular expressions
already present in jamu.py. If it fail, it tries one of the new ones.

Please, let me know what you think and also how I can have this patch
submitted?

Thank you

--
Attachments: jamu_full_filename.patch (7.68 KB)


voidtrance at comcast

Nov 17, 2009, 3:15 PM

Post #8 of 11 (890 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Mon, 16 Nov 2009 13:19:36 -0800
Mitko Haralanov <voidtrance [at] comcast> wrote:

> Well, the website is still down so I haven't been able to test my
> changes put I wanted to post the patch so people could start reviewing
> it.

Well, the TVDB website is back up and I am trying to use jamu.py to get
the metadata for my shows.

I am using a modified version of jamu which looks at the full pathname
of the files and gets info that way (and judging from the logs it is
working) but I get a jamu crash.

Below is the full log for the crash:

[mythtv [at] mytht scripts]$ ./jamu.py -l en -bMIVN
opts {'flags_options': False, 'mythtv_guess': False, 'examples': False, 'download': False, 'user_config': '', 'overwrite': False, 'toprated': False, 'version': False, 'usage': False, 'mythtv_watched': False, 'update': False, 'mythtvdir': False, 'mythtvjanitor': False, 'language': 'en', 'mythtv_inetref': True, 'selected_data': None, 'maximum': None, 'simulation': False, 'nokeys': False, 'ret_filename': False, 'debug': True, 'mythtv_verbose': True, 'mythtvmeta': True, 'mythtvNFS': True, 'interactive': False}

args []
2009-11-17 15:15:32,680) DEBUG Checking for a valid video filename extension
2009-11-17 15:15:32,681) DEBUG matched reg:^.+?/(?P<seriesname>[^/]+)/Season\ (?P<seasno>[0-9]+)/(?P<epno>[0-9]+).+$
Mythtv video database maintenance start: 2009-11-17 15:15

Now processing video file (01 Pilot)(1)(1)


Entry exists in MythDB but category is 0 and year is 1895 (default values).
Updating (01 Pilot).
2009-11-17 15:15:32,712) DEBUG Checking for series(The Sopranos), sid(None), season(1), episode(1), episode name(None)
2009-11-17 15:15:32,713) DEBUG Getting show the sopranos
2009-11-17 15:15:32,714) DEBUG Searching for show the%20sopranos
2009-11-17 15:15:32,714) DEBUG Retrieving URL http://www.thetvdb.com/api/GetSeries.php?seriesname=the%20sopranos&language=en
2009-11-17 15:15:32,730) DEBUG URL http://www.thetvdb.com/api/GetSeries.php?seriesname=the%20sopranos&language=en was cached in /tmp/tvdb_api_500/76641defeb03d915dcd89e6d36faa744.body
2009-11-17 15:15:32,731) DEBUG Found series The Sopranos (id: 75299)
2009-11-17 15:15:32,731) DEBUG Using custom UI <class __main__.jamu_ConsoleUI at 0x184c2f0>
2009-11-17 15:15:32,732) DEBUG Got The Sopranos, sid 75299
2009-11-17 15:15:32,732) DEBUG Getting all series data for 75299
2009-11-17 15:15:32,732) DEBUG Retrieving URL http://www.thetvdb.com/api/0BB856A59C51D607/series/75299/en.xml

! Warning: Error contacting www.thetvdb.com:
Could not connect to server: HTTP Error 404: Not Found
tvdb Series not found(01 Pilot) meta data dictionary cannot be returned
2009-11-17 15:15:34,249) DEBUG Checking for series(The Sopranos), sid(None), season(1), episode(1), episode name(None)
2009-11-17 15:15:34,249) DEBUG Correcting the sopranos to 75299
2009-11-17 15:15:34,249) DEBUG Got series id 75299
Traceback (most recent call last):
File "./jamu.py", line 6165, in <module>
main()
File "./jamu.py", line 6150, in main
process.processMythTvMetaData()
File "./jamu.py", line 5383, in processMythTvMetaData
tmp_subtitle = self._getSubtitle(cfile)
File "./jamu.py", line 3009, in _getSubtitle
self.verifySeriesExists()
File "./jamu.py", line 1948, in verifySeriesExists
seriesfound=self._searchforSeries(series_name)[int(season)][int(episode)]
File "./jamu.py", line 1892, in _searchforSeries
show = self.config['tvdb_api'][sid_or_name]
File "/usr/share/mythtv/mythvideo/scripts/ttvdb/tvdb_api.py", line 717, in __getitem__
return self.shows[sid]
KeyError: '75299'


I know that there was an error getting the information from TVDB and it
seems like the data for that particular SID is missing. Does anyone
know what is going on there?

Is anybody else getting similar errors from missing TV series?

--
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


myth at robinhill

Nov 18, 2009, 1:32 AM

Post #9 of 11 (851 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Tue Nov 17, 2009 at 03:15:51PM -0800, Mitko Haralanov wrote:

> On Mon, 16 Nov 2009 13:19:36 -0800
> Mitko Haralanov <voidtrance [at] comcast> wrote:
>
> > Well, the website is still down so I haven't been able to test my
> > changes put I wanted to post the patch so people could start reviewing
> > it.
>
> Well, the TVDB website is back up and I am trying to use jamu.py to get
> the metadata for my shows.
>
<- snip ->
> I know that there was an error getting the information from TVDB and it
> seems like the data for that particular SID is missing. Does anyone
> know what is going on there?
>
> Is anybody else getting similar errors from missing TV series?
>
Yep - some series work but most don't. Looks like it's not properly
up again yet - presumably some data files need regenerating.

Cheers,
Robin
--
___
( ' } | Robin Hill <myth [at] robinhill> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |


myth at robinhill

Nov 18, 2009, 3:09 AM

Post #10 of 11 (832 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Wed Nov 18, 2009 at 09:32:52AM +0000, Robin Hill wrote:

> On Tue Nov 17, 2009 at 03:15:51PM -0800, Mitko Haralanov wrote:
>
> > On Mon, 16 Nov 2009 13:19:36 -0800
> > Mitko Haralanov <voidtrance [at] comcast> wrote:
> >
> > > Well, the website is still down so I haven't been able to test my
> > > changes put I wanted to post the patch so people could start reviewing
> > > it.
> >
> > Well, the TVDB website is back up and I am trying to use jamu.py to get
> > the metadata for my shows.
> >
> <- snip ->
> > I know that there was an error getting the information from TVDB and it
> > seems like the data for that particular SID is missing. Does anyone
> > know what is going on there?
> >
> > Is anybody else getting similar errors from missing TV series?
> >
> Yep - some series work but most don't. Looks like it's not properly
> up again yet - presumably some data files need regenerating.
>
In fact, everything I've tried this morning has worked fine, so looks
like the usual overnight data export has fixed this.

Cheers,
Robin
--
___
( ' } | Robin Hill <myth [at] robinhill> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |


myth at robinhill

Nov 18, 2009, 11:26 AM

Post #11 of 11 (804 views)
Permalink
Re: jamu does not understand my TV series [In reply to]

On Wed Nov 18, 2009 at 11:09:35AM +0000, Robin Hill wrote:

> On Wed Nov 18, 2009 at 09:32:52AM +0000, Robin Hill wrote:
>
> > On Tue Nov 17, 2009 at 03:15:51PM -0800, Mitko Haralanov wrote:
> >
> > > On Mon, 16 Nov 2009 13:19:36 -0800
> > > Mitko Haralanov <voidtrance [at] comcast> wrote:
> > >
> > > > Well, the website is still down so I haven't been able to test my
> > > > changes put I wanted to post the patch so people could start reviewing
> > > > it.
> > >
> > > Well, the TVDB website is back up and I am trying to use jamu.py to get
> > > the metadata for my shows.
> > >
> > <- snip ->
> > > I know that there was an error getting the information from TVDB and it
> > > seems like the data for that particular SID is missing. Does anyone
> > > know what is going on there?
> > >
> > > Is anybody else getting similar errors from missing TV series?
> > >
> > Yep - some series work but most don't. Looks like it's not properly
> > up again yet - presumably some data files need regenerating.
> >
> In fact, everything I've tried this morning has worked fine, so looks
> like the usual overnight data export has fixed this.
>
Actually, there's still quite a few missing. Checking the ttvdb forums
pointed me to http://thetvdb.com/?tab=reports which shows the number of
series whose metadata still needs updating. Currently that's almost all
of them (the previous update was skipping some parts), but when that
number drops to zero, everything should be working again.

Cheers,
Robin
--
___
( ' } | Robin Hill <myth [at] robinhill> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.