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

Mailing List Archive: MythTV: Users

ttvdb.py question

 

 

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


gentlec at gmail

Jul 27, 2012, 2:29 PM

Post #1 of 12 (824 views)
Permalink
ttvdb.py question

The ttvdb.py grabber seems to be working fairly well on my MythVideo files
but it fails if a series name is ambiguous. I can't seem to figure out how
to associate a particular series id from thetvdb.com with a series. I know
that ttvdb.py has a configuration file option -c and according to the wiki
you can place a series override in there. However, since ttvdb.py runs in
the background, how do you tell it where the configuration file is? Is
this even the correct way to do this?

--
Chris


gentlec at gmail

Jul 27, 2012, 2:30 PM

Post #2 of 12 (813 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 4:29 PM, Chris Gentle <gentlec [at] gmail> wrote:

> The ttvdb.py grabber seems to be working fairly well on my MythVideo files
> but it fails if a series name is ambiguous. I can't seem to figure out how
> to associate a particular series id from thetvdb.com with a series. I
> know that ttvdb.py has a configuration file option -c and according to the
> wiki you can place a series override in there. However, since ttvdb.py
> runs in the background, how do you tell it where the configuration file
> is? Is this even the correct way to do this?
>

Oh, by the way, I'm using 0.25 in mythbuntu 12.04.

--
Chris


raymond at wagnerrp

Jul 27, 2012, 2:48 PM

Post #3 of 12 (814 views)
Permalink
Re: ttvdb.py question [In reply to]

On 7/27/2012 17:29, Chris Gentle wrote:
> The ttvdb.py grabber seems to be working fairly well on my MythVideo
> files but it fails if a series name is ambiguous. I can't seem to
> figure out how to associate a particular series id from thetvdb.com
> <http://thetvdb.com> with a series. I know that ttvdb.py has a
> configuration file option -c and according to the wiki you can place a
> series override in there. However, since ttvdb.py runs in the
> background, how do you tell it where the configuration file is? Is this
> even the correct way to do this?

The simple solution is to just make the series name not ambiguous.
Instead of using "Castle" or "Office", use "Castle (2009)" or "The
Office (US)". If you don't like that option, the script will read
overrides from ~/.mythtv/ttvdb.conf by default, if such a file exists.
Add lines to it such as...


[series_name_override]
Castle:83462
Office:73244


Note that this file must exist in the home directories of all users on
all hosts that may attempt to pull metadata for your video library. The
third option, ttvdb.py is run through the terminal, but it is not run in
the background. When you manually grab data for a show, and the show is
ambiguous, MythTV will pop up a window and ask you which series the show
belongs to.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


gentlec at gmail

Jul 27, 2012, 3:30 PM

Post #4 of 12 (814 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 4:48 PM, Raymond Wagner <raymond [at] wagnerrp>wrote:

> The simple solution is to just make the series name not ambiguous. Instead
> of using "Castle" or "Office", use "Castle (2009)" or "The Office (US)".
> If you don't like that option, the script will read overrides from
> ~/.mythtv/ttvdb.conf by default, if such a file exists. Add lines to it
> such as...
>
>
> [series_name_override]
> Castle:83462
> Office:73244
>

OK, thanks for your quick answer.

I've got this set up now in the account of the user that will be doing
metadata lookups. Does ttvdb.py run periodically or just when you browse
into a MythVideo folder? What's the best way to force it to run? I went
into a couple of the folders that are missing metadata lookup and nothing
seems to be happening. I was under the impression that in .25 it would do
lookups when you enter the folder.

--
Chris


thomas at mashos

Jul 27, 2012, 3:43 PM

Post #5 of 12 (814 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 2:48 PM, Raymond Wagner <raymond [at] wagnerrp> wrote:
> On 7/27/2012 17:29, Chris Gentle wrote:
>>
>> The ttvdb.py grabber seems to be working fairly well on my MythVideo
>> files but it fails if a series name is ambiguous. I can't seem to
>> figure out how to associate a particular series id from thetvdb.com
>> <http://thetvdb.com> with a series. I know that ttvdb.py has a
>>
>> configuration file option -c and according to the wiki you can place a
>> series override in there. However, since ttvdb.py runs in the
>> background, how do you tell it where the configuration file is? Is this
>> even the correct way to do this?
>
>
> The simple solution is to just make the series name not ambiguous. Instead
> of using "Castle" or "Office", use "Castle (2009)" or "The Office (US)". If
> you don't like that option, the script will read overrides from
> ~/.mythtv/ttvdb.conf by default, if such a file exists. Add lines to it such
> as...
>
>
> [series_name_override]
> Castle:83462
> Office:73244
>
>
> Note that this file must exist in the home directories of all users on all
> hosts that may attempt to pull metadata for your video library. The third
> option, ttvdb.py is run through the terminal, but it is not run in the
> background. When you manually grab data for a show, and the show is
> ambiguous, MythTV will pop up a window and ask you which series the show
> belongs to.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://www.mythtv.org/mailman/listinfo/mythtv-users

Doesn't it ignore anything inside of ()?

Thanks,

Thomas Mashos
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


raymond at wagnerrp

Jul 27, 2012, 4:07 PM

Post #6 of 12 (822 views)
Permalink
Re: ttvdb.py question [In reply to]

On 7/27/2012 18:43, Thomas Mashos wrote:
> On Fri, Jul 27, 2012 at 2:48 PM, Raymond Wagner <raymond [at] wagnerrp> wrote:
>> On 7/27/2012 17:29, Chris Gentle wrote:
>>>
>>> The ttvdb.py grabber seems to be working fairly well on my MythVideo
>>> files but it fails if a series name is ambiguous. I can't seem to
>>> figure out how to associate a particular series id from thetvdb.com
>>> <http://thetvdb.com> with a series. I know that ttvdb.py has a
>>>
>>> configuration file option -c and according to the wiki you can place a
>>> series override in there. However, since ttvdb.py runs in the
>>> background, how do you tell it where the configuration file is? Is this
>>> even the correct way to do this?
>>
>>
>> The simple solution is to just make the series name not ambiguous. Instead
>> of using "Castle" or "Office", use "Castle (2009)" or "The Office (US)".
>
> Doesn't it ignore anything inside of ()?

That information is only stripped out if it fails the regular expression
match for television episodes, and is instead treated as an independent
video (a movie).

http://code.mythtv.org/cgit/mythtv/tree/mythtv/libs/libmythmetadata/videometadata.cpp#n1052
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


raymond at wagnerrp

Jul 27, 2012, 4:10 PM

Post #7 of 12 (818 views)
Permalink
Re: ttvdb.py question [In reply to]

On 7/27/2012 18:30, Chris Gentle wrote:
> On Fri, Jul 27, 2012 at 4:48 PM, Raymond Wagner <raymond [at] wagnerrp
> <mailto:raymond [at] wagnerrp>> wrote:
>> The simple solution is to just make the series name not ambiguous.
>> Instead of using "Castle" or "Office", use "Castle (2009)" or "The
>> Office (US)". If you don't like that option, the script will read
>> overrides from ~/.mythtv/ttvdb.conf by default, if such a file
>> exists. Add lines to it such as...
>>
>>
>> [series_name_override]
>> Castle:83462
>> Office:73244
>>
>
> OK, thanks for your quick answer.
>
> I've got this set up now in the account of the user that will be doing
> metadata lookups. Does ttvdb.py run periodically or just when you
> browse into a MythVideo folder? What's the best way to force it to
> run? I went into a couple of the folders that are missing metadata
> lookup and nothing seems to be happening. I was under the impression
> that in .25 it would do lookups when you enter the folder.

MythTV 0.24 and later will optionally perform metadata lookup on all new
content added to the database during a file scan. This option is
disabled by default. You can also call this bulk lookup independent of
the content scan, but it will only operate on a given video once, after
which it is marked as processed, and skipped on subsequent passes. The
only other time MythTV performs a metadata lookup is when you call it
interactively for one specific video.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


gentlec at gmail

Jul 27, 2012, 4:38 PM

Post #8 of 12 (805 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 6:10 PM, Raymond Wagner <raymond [at] wagnerrp>wrote:

> [series_name_override]
>
>> Castle:83462
>>> Office:73244
>>>
>>>

Yep, this config file is definitely not being used. I found that
"Processed" flag in the videometadata table that you mentioned and reset it
to 0 for a few videos. Then I did a video scan and watched the logs. It
was unable to resolve an ambiguous match that I had clearly listed in my
ttvdb.conf file.

Any suggestions on how to debug this?

--
Chris


newmank1 at asme

Jul 27, 2012, 4:40 PM

Post #9 of 12 (803 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 4:10 PM, Raymond Wagner <raymond [at] wagnerrp> wrote:
> On 7/27/2012 18:30, Chris Gentle wrote:
>>
>> On Fri, Jul 27, 2012 at 4:48 PM, Raymond Wagner <raymond [at] wagnerrp
>> <mailto:raymond [at] wagnerrp>> wrote:
>>>
>>> The simple solution is to just make the series name not ambiguous.
>>> Instead of using "Castle" or "Office", use "Castle (2009)" or "The
>>> Office (US)". If you don't like that option, the script will read
>>> overrides from ~/.mythtv/ttvdb.conf by default, if such a file
>>> exists. Add lines to it such as...
>>>
>>>
>>> [series_name_override]
>>> Castle:83462
>>> Office:73244
>>>
>>
>> OK, thanks for your quick answer.
>>
>> I've got this set up now in the account of the user that will be doing
>> metadata lookups. Does ttvdb.py run periodically or just when you
>> browse into a MythVideo folder? What's the best way to force it to
>> run? I went into a couple of the folders that are missing metadata
>> lookup and nothing seems to be happening. I was under the impression
>> that in .25 it would do lookups when you enter the folder.
>
>
> MythTV 0.24 and later will optionally perform metadata lookup on all new
> content added to the database during a file scan. This option is disabled
> by default. You can also call this bulk lookup independent of the content
> scan, but it will only operate on a given video once, after which it is
> marked as processed, and skipped on subsequent passes. The only other time
> MythTV performs a metadata lookup is when you call it interactively for one
> specific video.

By the way, that individual lookup does not appear to be working when
selected through the menus by remote. If I bring up the menu and then
click Ok (lircrc "config=Return") on Retrieve All Details the menu
goes away but nothing happens. If I log in by VNC and press the w key,
I get the circular progress bar and the details are retrieved (or a
disambiguation dialog box is shown). This occurs in any view (browse,
list, manage, gallery). Is there something wrong with my config?

Also, where in the frontend can I manually enter the inetref number for a video?

Thanks,

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


gentlec at gmail

Jul 27, 2012, 5:06 PM

Post #10 of 12 (804 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 6:40 PM, Karl Newman <newmank1 [at] asme> wrote:

> By the way, that individual lookup does not appear to be working when
> selected through the menus by remote. If I bring up the menu and then
> click Ok (lircrc "config=Return") on Retrieve All Details the menu
> goes away but nothing happens. If I log in by VNC and press the w key,
> I get the circular progress bar and the details are retrieved (or a
> disambiguation dialog box is shown). This occurs in any view (browse,
> list, manage, gallery). Is there something wrong with my config?
>

Same here. Pressing "W" works but "Retrieve All Details" does not.


>
> Also, where in the frontend can I manually enter the inetref number for a
> video?
>

Press "i" then choose Change Video Details -> Edit Details.

That screen is garbled on my display. Looks like a formatting problem in
the theme. But I think there's a blank there that is supposed to let you
set the inetref.

That's fine for a couple of videos but you sure wouldn't want to do it for
a whole series.

--
Chris


newmank1 at asme

Jul 27, 2012, 5:19 PM

Post #11 of 12 (801 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 5:06 PM, Chris Gentle <gentlec [at] gmail> wrote:
> On Fri, Jul 27, 2012 at 6:40 PM, Karl Newman <newmank1 [at] asme> wrote:
>>
>> By the way, that individual lookup does not appear to be working when
>> selected through the menus by remote. If I bring up the menu and then
>> click Ok (lircrc "config=Return") on Retrieve All Details the menu
>> goes away but nothing happens. If I log in by VNC and press the w key,
>> I get the circular progress bar and the details are retrieved (or a
>> disambiguation dialog box is shown). This occurs in any view (browse,
>> list, manage, gallery). Is there something wrong with my config?
>
>
> Same here. Pressing "W" works but "Retrieve All Details" does not.
>
>>
>>
>> Also, where in the frontend can I manually enter the inetref number for a
>> video?
>
>
> Press "i" then choose Change Video Details -> Edit Details.
>
> That screen is garbled on my display. Looks like a formatting problem in
> the theme. But I think there's a blank there that is supposed to let you
> set the inetref.
>
> That's fine for a couple of videos but you sure wouldn't want to do it for a
> whole series.

Maybe it's a theme issue (I'm using MythCenter-wide), but I don't see
an edit control for the inetref (or "Video num.").

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


gentlec at gmail

Jul 27, 2012, 5:28 PM

Post #12 of 12 (806 views)
Permalink
Re: ttvdb.py question [In reply to]

On Fri, Jul 27, 2012 at 7:19 PM, Karl Newman <newmank1 [at] asme> wrote:

> Maybe it's a theme issue (I'm using MythCenter-wide), but I don't see
> an edit control for the inetref (or "Video num.").
>

I'm using the Mythbuntu theme. Maybe I need to change themes and see if
the screen straightens up.

--
Chris

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.