NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 3 4 5 6 7 … 56 Next »
imageGrabLite 1.1

 
  • 0 Vote(s) - 0 Average
imageGrabLite 1.1
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#1
2012-01-18, 04:27 AM
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.nextpvr.com/nwiki/pmwiki.php?...teSetup.7z

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

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#2
2012-01-19, 04:56 AM
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]    [b]Read Error The database file is locked
database is locked[/b]
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.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#3
2012-01-19, 05:06 AM
Can I see the other logs?

martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#4
2012-01-19, 07:09 AM
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.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#5
2012-01-19, 12:26 PM
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
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#6
2012-01-20, 05:14 AM
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.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
XJW
Offline

Senior Member

Posts: 286
Threads: 41
Joined: Oct 2008
#7
2012-01-20, 09:20 PM
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.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#8
2012-01-20, 09:54 PM
XJW Wrote: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
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#9
2012-01-25, 05:46 AM
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.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#10
2012-01-25, 06:29 AM
johnsonx42 Wrote: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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (12): 1 2 3 4 5 … 12 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Considering dropping support for imageGrabLite mvallevand 8 4,081 2016-01-08, 08:23 AM
Last Post: liteswap
  imageGrabLite 1.2 mvallevand 90 36,425 2013-10-04, 10:00 PM
Last Post: johnsonx42
  imageGrabLite Beta mvallevand 84 61,701 2013-10-04, 06:40 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode