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
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#11
2012-01-25, 06:11 PM (This post was last modified: 2012-01-30, 02:42 AM by jam_zhou.)
anyway to output each new filename to a text file? I use echo %1 >> transcode_queue.txt where %1 is the file name. This is then used as the queue for my nightly transcode.

You can put the txt file anywhere you like as long as it conforms to how npvr outputs %1 as the filename.

As for no episode information then maybe rename to title - subtitle - recorded date?

What happens if there's no subtitle?

EDIT: I think I'll change the way I get the transcode_queue.txt so that the name doesn't matter. I'm going to do something like the "dirmon" programs that are out there and just scan for any ts files in the recording directory and output it to my queue file since I already made a script that can essentially do that a long time ago.
E6400, 2 GB RAM ,500 GB + 250 GB HD, PVR150+ Adaptec 3610, RW 2 + HIP, Antec 2480 w/ mini ninja ...still using v 0.99
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#12
2012-01-25, 06:27 PM
I would certainly suggest that if there's no subtitle and no movie information, then it should be left as-is.

For the case where there's no episode info found but there is a subtitle, perhaps title-subtitle-timestamp as jam_zhou suggests would be best. That's what I did when I wrote my own renaming script; I grabbed the title and subtitle with nscripthelper, then used an ugly but of code to pull the timestamp out of the original filename and then put it all back together. It had a lot of pitfalls though and often failed one way or another; certainly imagegrablite is far superior.
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,802
Threads: 954
Joined: May 2006
#13
2012-01-25, 11:59 PM
jam_zhou Wrote:anyway to output each new filename to a text file? I use echo %1 >> transcode_queue.txt where %1 is the file name. This is then used as the queue for my nightly transcode.

I think this would be a good enhancement to NScripthelper with the oid as a parameter.

Quote:As for no episode information then maybe rename to title - subtitle - recorded date?

That can be a pretty long name,

Quote:What happens if there's no subtitle?

Right know typically movies don't have a subtitle but they are renamed to move_title (year).ts when the original air date and identification of the movies is possible. Otherwise when imageGrabLite doesn't find a subtitle it will not do anything.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#14
2012-01-26, 12:06 AM
johnsonx42 Wrote:For the case where there's no episode info found but there is a subtitle, perhaps title-subtitle-timestamp as jam_zhou suggests would be best. That's what I did when I wrote my own renaming script; I grabbed the title and subtitle with nscripthelper, then used an ugly but of code to pull the timestamp out of the original filename and then put it all back together. It had a lot of pitfalls though and often failed one way or another; certainly imagegrablite is far superior.

The more I think about it the more I don't like this method for general use. The still won't be in the correct sort order in the Video Library or other app you are playing with and for me the most important part of the rename is the S#E# info. I don't have any idea what the episode name of most shows except maybe Star Treks.

Perhaps keep you old NScripthelper logic and after imageGrabLite add

if not exist "%1" goto renamed
rem your logic
:renamed

Martin
dljones8053
Offline

Senior Member

USA
Posts: 267
Threads: 2
Joined: Jul 2006
#15
2012-01-28, 04:09 PM
Martin

I found using this app that the url is not pulling up correctly info during the http api call, please look at the info I posted.


What ImageGrabLite try's to pull off of Zap2it:

[...startup]
2012-01-27 23:11:54.591 [DEBUG][1] Command Line --oid 2038 --rename
2012-01-27 23:11:54.669 [DEBUG][1] Searching select scheduled_recording.name, event_details, start_time, filename from scheduled_recording, channel where scheduled_recording.oid = 2038 and scheduled_recording.channel_oid = channel.oid
2012-01-27 23:11:54.669 [DEBUG][1] Subtitle: Length=7 Aithusa
2012-01-27 23:11:54.669 [DEBUG][1] Zap2it reference http://tvlistings.zap2it.com/tv/merlin-/EP010476350052
2012-01-27 23:11:54.685 [DEBUG][1] OID is 2631071
2012-01-27 23:11:54.685 [DEBUG][1] Meta files exists C:\Users\Public\NPVR\Media/Shows/Merlin.xml
2012-01-27 23:11:54.685 [DEBUG][1] Episodic: True C:\Users\Public\NPVR\Plugins/SearchLite/Series/Merlin.xml
2012-01-27 23:11:54.685 [DEBUG][1] Cannot rename file, no episode information


What the real url should be off of Zap2it:
http://tvlistings.zap2it.com/tv/merlin-a...0476350052

tvlistings.zap2it.com/tv/merlin-aithusa/EP010476350052

Should the Subtitle be added to the api call to fix this or will it break the app completely?

dj
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#16
2012-01-28, 04:30 PM
ImageGrabLIte doesn't do anything with the Zap2It url, I put it for reference and I just clicked on it and it worked. It's an easy scrap but I find the TheTVDb data more accurate and I wanted one source to avoid conflicting renaming logic.

"Merlin" is one of my trouble shows since it doesn't match on TVDb but it matches on TVRage. TVDb wants the name to be "Merlin (2008)" The only workaround is as posted here http://forums.nextpvr.com/showthread.php...post422472 Following that link you will end up with this http://www.thetvdb.com/api/GetSeries.php...anguage=en If the TVDb data had the right Zap2it id this would be easier to do pattern matching.

The second issue with the rename is it probably should be "Merlin (2008).S0404.Aithusa"

Edit: I should mention that I am still trying to use the original air date to resolve this issue but it involves change the logic on going to TVRage.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#17
2012-01-29, 07:17 AM
I placed an update to imageGrabLite on the wiki that has improved handling of multi-year shows. It uses the original air date to establish the time, and if not found the most current show will used.

A second fix was added to match subtitles with the online data. For johnsonx42's Pecola mismatch he had:
"Fire Drill Frenzy; Hurricane Pecola" while TVDb has
"Fire Drill Frenzy / Hurricane Pecola"

ImageGrabLite has match logic removing all non-alphanumerics but in this case it left an extra space. Now all extra spacing is removed too.

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#18
2012-01-30, 10:06 AM
Just wanted to add my thanks for this great little app. Having stuck with GBPVR for so long I'd never really given it a try, but now that NPVR is being used all the time I decided it was time to give it a go.

Thanks Martin!

Iain
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#19
2012-01-30, 12:58 PM
imilne Wrote:Just wanted to add my thanks for this great little app. Having stuck with GBPVR for so long I'd never really given it a try, but now that NPVR is being used all the time I decided it was time to give it a go.

Thanks, I assume you are only using the image grabbing and not renaming since that is more a North American thing. The renaming of films with RT data is actually pretty good but the tv series renaming needs work.

Note for Videos+ imageGrabLite stores a title.xml file with the node from themoviedb.org in Media\Shows for files and a similar node from thetvdb and tvrage. The same search is in SearchLite, so if you ever want to call it via a Notify let me know.

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#20
2012-01-30, 01:23 PM
mvallevand Wrote:Thanks, I assume you are only using the image grabbing and not renaming since that is more a North American thing. The renaming of films with RT data is actually pretty good but the tv series renaming needs work.

Yeah, just images. Everything we record gets deleted once watched anyway, so it's just a nice way of getting some images for the recordings screen. It did fail on a few imported recordings from GBPVR, but there's so few of them I just grabbed stuff manually.

mvallevand Wrote:Note for Videos+ imageGrabLite stores a title.xml file with the node from themoviedb.org in Media\Shows for files and a similar node from thetvdb and tvrage. The same search is in SearchLite, so if you ever want to call it via a Notify let me know.

Thanks, I'll keep that in mind. Quite a few people requested automatic metadata retrieval when I first said I was working on it, but it's also something I didn't want to do.

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (12): « Previous 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 3,969 2016-01-08, 08:23 AM
Last Post: liteswap
  imageGrabLite 1.2 mvallevand 90 35,922 2013-10-04, 10:00 PM
Last Post: johnsonx42
  imageGrabLite Beta mvallevand 84 61,347 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