Page 1 of 10 123 ... LastLast
Results 1 to 10 of 119

Thread: imageGrabLite 1.1

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,881

    imageGrabLite 1.1

    Thanks to the extensive work sub did for 2.3.6 EPG handling, imageGrabLite is now able to more accurately rename files and download cover art based on the show's original air date, or movie release year. In addition to the existing function of renaming TV show to Series.S##E##.Episode format movies will be renamed to MovieTitle (year) format when the year is available. Cover art will match the year of the release too, if it is the first show with that title in the database, unfortunately NextPVR doesn't differentiate files by the year.

    Other changes in pattern matching will mean more titles will match based on the alternate names stored on TVDB.com and themoviedb.org

    For users in North America with unique_identifiers for their episodes movies and tv series will be handled differently so you will be able to have files renamed to "The Firm.S01E03.Chapter3.ts or "The Firm (1993)".ts format. I do have a bit of tweaking to do on this.

    The file is available from the the NextPVR wiki http://www.gbpvr.com/nwiki/pmwiki.ph...abLiteSetup.7z

    Note until I have time to update the wiki the original beta posts are your best reference. http://forums.gbpvr.com/showthread.p...eGrabLite-Beta There are no command line changes.

    Martin

  2. #2
    Join Date
    Sep 2008
    Location
    California
    Posts
    5,616
    I've discovered a possible race condition when using the --rename option. If NPVR finishes two recordings at the same time, it launches PostProcessing.bat for both recordings at the same time, and therefore both instances of ImageGrabLite run at the same moment. Usually there's still some small variance in the time so all is well, but sometimes:
    Code:
    [...startup]
    2012-01-18 20:05:33.530	[DEBUG][1]	Command Line --oid 143865 --rename
    2012-01-18 20:05:33.876	[DEBUG][1]	Searching select scheduled_recording.name, event_details, start_time, filename from scheduled_recording, channel where scheduled_recording.oid = 143865 and scheduled_recording.channel_oid = channel.oid 
    2012-01-18 20:05:33.892	[DEBUG][1]	Subtitle: Length=10 I Heart NJ
    2012-01-18 20:05:33.908	[DEBUG][1]	Zap2it reference http://tvlistings.zap2it.com/tv/how-i-met-your-mother/EP007537960072
    2012-01-18 20:05:33.908	[DEBUG][1]	OID is 7255947
    2012-01-18 20:05:33.908	[DEBUG][1]	OriginalAirDate is 2008
    2012-01-18 20:05:33.908	[DEBUG][1]	Meta files exists C:\Users\Public\NPVR\Media/Shows/How I Met Your Mother.xml
    2012-01-18 20:05:33.962	[DEBUG][1]	Episodic: True C:\Users\Public\NPVR\Plugins/SearchLite/Series/How I Met Your Mother.xml
    2012-01-18 20:05:34.025	[DEBUG][1]	/Data/Episode/EpisodeName[. ='I Heart NJ']
    2012-01-18 20:05:34.025	[DEBUG][1]	Rename using I Heart NJ S04 E03
    2012-01-18 20:05:34.025	[DEBUG][1]	Episode not found
    2012-01-18 20:05:34.041	[DEBUG][1]	2008-10-06
    2012-01-18 20:05:34.041	[DEBUG][1]	Found a match with I Heart NJ
    2012-01-18 20:05:34.041	[DEBUG][1]	<id>389893</id><Combined_episodenumber>3</Combined_episodenumber><Combined_season>4</Combined_season><DVD_chapter></DVD_chapter><DVD_discid></DVD_discid><DVD_episodenumber></DVD_episodenumber><DVD_season></DVD_season><Director>Pamela Fryman</Director><EpImgFlag>2</EpImgFlag><EpisodeName>I Heart NJ</EpisodeName><EpisodeNumber>3</EpisodeNumber><FirstAired>2008-10-06</FirstAired><GuestStars>|David Henrie|Lyndsy Fonseca|Sarah Chalke|Darcy Rose Byrnes|Michael Kagan|Shammy Dee|Edward Kiniry-Ostro|</GuestStars><IMDB_ID></IMDB_ID><Language>en</Language><Overview>When Stella's babysitter cancels, a night out turns into the gang hanging out at her place, and Ted talks up New Jersey... until he learns Stella wants him to move there after marriage.</Overview><ProductionCode>4ALH03</ProductionCode><Rating>7.5</Rating><RatingCount>122</RatingCount><SeasonNumber>4</SeasonNumber><Writer>Greg Malins</Writer><absolute_number>67</absolute_number><filename>episodes/75760/389893.jpg</filename><lastupdated>1318196947</lastupdated><seasonid>34610</seasonid><seriesid>75760</seriesid>
    2012-01-18 20:05:34.041	[DEBUG][1]	Rename using I Heart NJ S04 E03
    2012-01-18 20:05:34.041	[DEBUG][1]	How I Met Your Mother.S04E03.I Heart NJ
    2012-01-18 20:06:04.072	[ERROR][1]	Read Error The database file is locked
    database is locked
    I wasn't able to capture the log for the other show.

    Both recording files were renamed and both disappeared from the database.

    I don't know if you have any means to work around such a race condition from within the program, but on my end I just added a "sleep %2" to the beginning of my PostProcessing.bat to introduce a pause that will be different for each show.
    NPVR Tech Support Sticky - - http://forums.gbpvr.com/showthread.p...612#post473612
    ---------------------------
    my config: NPVR 3.2.9/Win7Pro/Athlon II X3-440/radeon hd4550/hvr-2250/hvr-850/KWorld 315U/TimeWarner QAM & Analog, OTA ATSC/schedules direct

  3. #3
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,881
    Can I see the other logs?

    martin

  4. #4
    Join Date
    Sep 2008
    Location
    California
    Posts
    5,616
    Sorry, I don't have any of the others, they cycled out before I could grab them. I had a line in my postprocessing.bat that was supposed to grab the log content at the end of each run and stick it in another file, but I discovered tonight that I had a typo in the path so it didn't work. I've corrected it now, but too late.

    I also just realized that the log I posted was the wrong one; in that instance the rename did not take place and the recording remained in the database. It was the 2 recordings that ended a half-hour before that were renamed but disappeared.

    If you like I can remove the "sleep %2" from my batch file and try to capture another instance of this conflict.
    NPVR Tech Support Sticky - - http://forums.gbpvr.com/showthread.p...612#post473612
    ---------------------------
    my config: NPVR 3.2.9/Win7Pro/Athlon II X3-440/radeon hd4550/hvr-2250/hvr-850/KWorld 315U/TimeWarner QAM & Analog, OTA ATSC/schedules direct

  5. #5
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,881
    I really wanted to see NRecord and NextPVR logs, though, this is why I ask for all logs, sqlite should be able to update database records simultaneously and I was looking for other actions around that time.

    Martin

  6. #6
    Join Date
    Sep 2008
    Location
    California
    Posts
    5,616
    oh, I see. Yes, you're right, I just read your exact request for that yesterday, and promptly forgot.

    My NRecord log has nothing anywhere near that time, just recordings in progress but no other actions. My NPVR logs have already cycled out.

    If I get any error in ImageGrabLite again, I'll make sure to document it completely with all logs.
    NPVR Tech Support Sticky - - http://forums.gbpvr.com/showthread.p...612#post473612
    ---------------------------
    my config: NPVR 3.2.9/Win7Pro/Athlon II X3-440/radeon hd4550/hvr-2250/hvr-850/KWorld 315U/TimeWarner QAM & Analog, OTA ATSC/schedules direct

  7. #7
    Join Date
    Oct 2008
    Location
    Melbourne, Australia
    Posts
    275
    Martin, Really nice tool. Many thanks. Any thoughts on how it could be used on the Videos folders ? I am using ThumbGen for these now but a GetCover option in the Videos menu would be really nice.
    SW: NPVR3.2.9, System, Searchlite, DVBGuide, SAF, Windows 7 HP 32bit CONFIG: DVB-T, OTA EPG HW: Antec P280, ASUS P5E, Q6600, 4G DDR2, ASUS 8500GT Silent, 2x HVR2200, 6TB HDDs, Pioneer DVR216, Hauppauge MCE Dongle, Logitech 785 Remote, Sony 48 inch TV 4:3 800x600

  8. #8
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,881
    Quote Originally Posted by XJW View Post
    Martin, Really nice tool. Many thanks. Any thoughts on how it could be used on the Videos folders ? I am using ThumbGen for these now but a GetCover option in the Videos menu would be really nice.
    ThumbGen and Ember are already good tools for bulk downloading and I don't want to compete with them. imageGrabLite really needs to be powered by the NextPVR database for searching and especially rename matching, and SearchLite already has the logic to get single covers. I asked sub before if he would come up with a way to call plugins from his menu since I thought it would be nice from the Video library too but he said no.

    Martin

  9. #9
    Join Date
    Sep 2008
    Location
    California
    Posts
    5,616
    I notice that it doesn't rename files if it can't track down Season and Episode information, like so:
    Code:
    2012-01-24 17:36:03.653	[DEBUG][1]	Command Line --oid 145713 --rename
    2012-01-24 17:36:03.810	[DEBUG][1]	Searching select scheduled_recording.name, event_details, start_time, filename from scheduled_recording, channel where scheduled_recording.oid = 145713 and scheduled_recording.channel_oid = channel.oid 
    2012-01-24 17:36:03.831	[DEBUG][1]	Subtitle: Length=35 Fire Drill Frenzy; Hurricane Pecola
    2012-01-24 17:36:03.831	[DEBUG][1]	Zap2it reference http://tvlistings.zap2it.com/tv/pecola/EP004583000030
    2012-01-24 17:36:03.831	[DEBUG][1]	OID is 7336889
    2012-01-24 17:36:03.832	[DEBUG][1]	OriginalAirDate is 2007
    2012-01-24 17:36:03.853	[DEBUG][1]	Meta files exists C:\Users\Public\NPVR\Media/Shows/Pecola.xml
    2012-01-24 17:36:03.862	[DEBUG][1]	Episodic: True C:\Users\Public\NPVR\Plugins/SearchLite/Series/Pecola.xml
    2012-01-24 17:36:03.897	[DEBUG][1]	/Data/Episode/EpisodeName[. ='Fire Drill Frenzy; Hurricane Pecola']
    2012-01-24 17:36:03.898	[DEBUG][1]	Not found, trying fire drill frenzy hurricane pecola
    2012-01-24 17:36:03.898	[DEBUG][1]	Not found - Trying single episode Fire Drill Frenzy
    2012-01-24 17:36:03.898	[DEBUG][1]	/Data/Episode/EpisodeName[. ='Fire Drill Frenzy']
    2012-01-24 17:36:03.898	[DEBUG][1]	Series Ended
    2012-01-24 17:36:03.898	[DEBUG][1]	Episode not found
    2012-01-24 17:36:03.908	[DEBUG][1]	2007-02-07
    2012-01-24 17:36:03.909	[DEBUG][1]	Cannot rename file, no episode information
    I'd find it preferrable if it still renamed the file, just using the show title and subtitle which is already known from the EPG.
    NPVR Tech Support Sticky - - http://forums.gbpvr.com/showthread.p...612#post473612
    ---------------------------
    my config: NPVR 3.2.9/Win7Pro/Athlon II X3-440/radeon hd4550/hvr-2250/hvr-850/KWorld 315U/TimeWarner QAM & Analog, OTA ATSC/schedules direct

  10. #10
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,881
    Quote Originally Posted by johnsonx42 View Post
    I'd find it preferrable if it still renamed the file, just using the show title and subtitle which is already known from the EPG.
    I am not sure about that, most programs don't match, and the recorded date is important. I guess I will see what others think.

    That file should have matched S01E03 I think I might be too aggressive with the date check, I'll make a note to check.

    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •