NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 … 8 9 10 11 12 … 125 Next »
File Renaming Utility: AddEpisode

 
  • 0 Vote(s) - 0 Average
File Renaming Utility: AddEpisode
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#41
2006-09-10, 11:27 PM
turkey Wrote:(moved from the community announcements thread)



This sounds easy enough. give me a few days, and ill work on it. Thanks for the suggestion.
THANKS!! It is less of a need for me since I have been getting my feed wet in SQL, but it will be nice.
While I'm being a pain, what I REALLY would like is to add the last 2-4 digits (perhaps an optional flag for length...) of the unique_identifier to the beginning of the filename.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#42
2006-09-12, 01:38 AM
Pioneer4x4 Wrote:what I REALLY would like is to add the last 2-4 digits (perhaps an optional flag for length...) of the unique_identifier to the beginning of the filename.

so, before i release an update with this function, i want to make sure it will do what people want it to do. Looking at the unique_identifier, i found that there are four prefixes that indicate sports, movies, episodes, and shows. Only the episodes have unique identifiers based on the specific episode. With all other prefixes, the unique_identifier only refers to the show, and the last four digits are "0000". So I have addepisode only return a unique identifier if it has an "ep" prefix. There will be two settings: return the last four digits, and return the last two digits.

Hopefully, those that will use this feature can understand my explanation, and tell me if this feature will work for you as I have described it.
willyperkins
Offline

Junior Member

Posts: 43
Threads: 13
Joined: Jul 2006
#43
2006-09-13, 03:08 AM
turkey Wrote:has the new version run succesfully at all?

this error indicates that you did not call addepisode correctly. the correct format is:

addepisode %1 "{format tokens}"

All of the formatting tokens can be found in the help file, or on the wiki. This is the line that I have in my postprocessing.bat file:

addepisode %1 "{show}{[ - ]}{episode}"

if you think you have called addepisode correctly, post the line you have added to the postprocessing.bat file, as it may be a bug.

Yes, you are right, I didn't know I had to make that change for the new version... Works fine now, thank-you...
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#44
2006-09-13, 03:47 AM
turkey Wrote:so, before i release an update with this function, i want to make sure it will do what people want it to do. Looking at the unique_identifier, i found that there are four prefixes that indicate sports, movies, episodes, and shows. Only the episodes have unique identifiers based on the specific episode. With all other prefixes, the unique_identifier only refers to the show, and the last four digits are "0000". So I have addepisode only return a unique identifier if it has an "ep" prefix. There will be two settings: return the last four digits, and return the last two digits.

Hopefully, those that will use this feature can understand my explanation, and tell me if this feature will work for you as I have described it.
I definately seem to be one of the only people doing this, but that is exactly what I was wanting. I have been able to use SQL code to do the same thing to the db before the show records, and your util will rename fine.
basically, don't change it just for me, even though I would appreciate itSmile
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Mr. Seldon
Offline

Junior Member

Posts: 4
Threads: 1
Joined: Aug 2006
#45
2006-09-14, 07:15 AM
Hi there,

nice tool, just what i needed. In my case it renames the recordings (and all the files comskip creates) properly but it kicks them out of the sqlite database... The reording and renaming is done, but the show is not available in GBPVR.

My postprocessing.bat:
Quote:addepisode %1 "{show}{[ - ]}{season and episode}{[ - ]}{day}{[-]}{month}{[-]}{year}"

I`m using comskip in the recent version, it runs during the recording. Whats my mistake?
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#46
2006-09-14, 11:19 AM
Mr. Seldon Wrote:Whats my mistake?

Have a look at the log file for addepisode. It is a text file in the gbpvr directory called addepsiode. If there are any sqlite errors, post them for me to see.
Mr. Seldon
Offline

Junior Member

Posts: 4
Threads: 1
Joined: Aug 2006
#47
2006-09-14, 11:29 AM
checked that log. no errors. just two (old, from yesterday morning) entries.

Quote:E:\Video\Aufnahmen\Zeit im Bild\Zeit im Bild_20060912_09000905 Renamed to E:\Video\Aufnahmen\Zeit im Bild\Zeit im Bild - Nachrichten 5-388-386 at 09:09 09/12/2006
E:\Video\Aufnahmen\SpongeBob Schwammkopf\SpongeBob Schwammkopf_20060912_09301000 Renamed to E:\Video\Aufnahmen\SpongeBob Schwammkopf\SpongeBob Schwammkopf - 12 - 09 - 2006 at 10:02 09/12/2006

no sign of the recordings i did afterwards.
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#48
2006-09-14, 09:18 PM
Well, I dont have much to go on, but you can try a few things. Try restarting the gbpvr recording service. If the database is locked up, this should unlock it. Also, you may want to put a delay in your postprocessing.bat file. I accomplish this by adding this line before the addepisode line:

sleep 60

I am not sure if sleep.exe come with windows, or if i downloaded it, but it will just pause the batch file for the number of seconds you call it for. The reason I do this is to cut down on concurrent access of the database. I am not sure that this is your problem, but it may be worth trying.
ww4397
Offline

Senior Member

Posts: 382
Threads: 47
Joined: Oct 2005
#49
2006-09-15, 04:34 PM
turkey Wrote:A new version of addepisode has been released


Just wondering if the Manual Recording error bug is fixed in the update before I install it?

Thanks.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#50
2006-09-15, 09:13 PM
Pioneer4x4 Wrote:I definately seem to be one of the only people doing this, but that is exactly what I was wanting. I have been able to use SQL code to do the same thing to the db before the show records, and your util will rename fine.
basically, don't change it just for me, even though I would appreciate itSmile
I think I have everything working the way "I" like.

I have this in my "PostUpdateEPG.bat"
sqlite3 gbpvr.db3 <testupdate.sql


And this is the contents of "testupdate.sql"

UPDATE PROGRAMME
SET sub_title=SUBSTR(unique_identifier,-4,4)||' - '||sub_title WHERE (SUBSTR(sub_title,1,1)>"9" OR sub_title='') AND unique_identifier <"F";

What it does is:
changes the sub_title (episode name) field to start with the last 4 digits of the unique_identifier only if it is an "Episode" not "Show" or "Movie" or "Sports" and only if it doesn't already start with a number.

Then Turkey's File Renaming Utility: AddEpisode will rename the .mpg to filename with sortable episode number and name.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (19): « Previous 1 … 3 4 5 6 7 … 19 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  vidImport utility support carpeVideo 73 53,685 2012-05-27, 06:27 AM
Last Post: jksmurf
  xmltv doesn't import all the channel information in xmltv file vokuit00 2 2,806 2010-06-07, 04:35 AM
Last Post: vokuit00
  transcode from file.ts to file.mpeg in parallelproocessing alevideotestservice 4 2,826 2009-12-30, 07:27 PM
Last Post: alevideotestservice
  Showanalyzer Doesn't Run While Show is Recording a .TS File ww4397 1 2,517 2009-12-02, 11:14 AM
Last Post: ww4397
  Newbie needs help with renaming external plugins and making some plugins to work Chris79 2 2,339 2009-06-14, 05:36 AM
Last Post: Chris79
  Comskip: Interpreting the aspects file zehd 0 1,554 2008-11-29, 07:41 AM
Last Post: zehd
  EPG Utility: YApi2XML (discontinued) -Oz- 503 131,909 2008-11-28, 08:55 PM
Last Post: zehd
  Extended program information utility? SLR_65 10 5,375 2008-10-29, 02:33 AM
Last Post: UncleJohnsBand
  SkipTool creates a bogus file if the name contains & mkenyon2 40 14,731 2008-10-23, 06:59 PM
Last Post: pastro
  yapi2cml reporting corrupted listing file? teookie 1 1,647 2008-09-25, 10:50 PM
Last Post: zehd

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

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

Linear Mode
Threaded Mode