Rename series from epg data (1 Viewer)

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
here is an updated file with a corrected xml file should you need it
can you send me the xml file it crreated and the log..
 

surfermc

Portal Pro
May 7, 2006
369
17
Dorset
Home Country
England England
Rickyg,

It now successfully renames the file with the s03e09 format. I've attached the log and the .xml created from the previous .exe

Should it update the 4tr database or is this a later development.
The xml file is still not a genuine xml file as the header is line is not correct.
 

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
Glad to hear its working.
Can you show me whats wrong with the XML file.
Its new to me so I am not sure of the format.
Also, I am not sure what you meant by conif a directory...do you mean a watch folder.
As for updating the 4tr db, not sure thats something I can do.
Might be outside my scope of understanding.
but I will look
 

surfermc

Portal Pro
May 7, 2006
369
17
Dorset
Home Country
England England
Glad to hear its working.
Can you show me whats wrong with the XML file.
Its new to me so I am not sure of the format.
The first line should be
Code:
<?xml version="1.0" encoding="UTF-8"?>
If you try and open an xml file in Internet Explorer or Firefox they will highlight errors.

Also, I am not sure what you meant by conif a directory...do you mean a watch folder.
As for updating the 4tr db, not sure thats something I can do.
Might be outside my scope of understanding.
but I will look
I was meanining instead of renaming the recorded file could a copy be made of the file with the new name in a different, but user customisable, location. This would then mean you wouldn't have to edit entries in the 4tr database and the file could be in a different location for the TVSeries plugin.
 

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
hi surfermc.
I see what you mean about the xml code.
I ran it through an editor to find all teh problems and have corrected the code. Not sure why it was writing it out that way. BUt I believe its fixed now.
As for the move to a directory idea.
Can't see why not. I have a couple things I would like to do first.
Improve the logging for when it does go boom.
Add some ability to configure it with out editing the xml file manually.
then I can look at the file move idea.
I don't think I can do the 4tr interaction programming. I think my tools and skills are to out dated. But I will poke at it.
I will upload another version shortly.
 

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
surfermc.
I have corrected teh xml issues...I hope and added code to take the thmb file into account.
Seems its not always created just after the redocding is done.
So I added code to make sure the file isn't in use and that it exists before renaming it.
you comment about moving the file.
Are you thinking of it could move to a single file...like a renamed folder. Or configured to move to different folders dependant on the show and what you config.
I want to add some customization to it next so your thoughts are appreciated.
 

Attachments

  • TsRenamer2.zip
    30.6 KB

surfermc

Portal Pro
May 7, 2006
369
17
Dorset
Home Country
England England
Rickyg

Great work.

The .xml file looks good. I get no errors now.

With regard to copying / moving the renamed file, I was thinking of folder names based on the show. e.g. all the "Andromeda" shows would be copied/moved to the same folder \Andromeda. The user would be able to configure the base folder path e.g D:\TVServies and the application would then add the rest to make "D:\TVSeries\Andromeda".
 

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
v3

I have done some changes to accomodate customization for a users specific needs.
Once I ahve the bugs out I will work on the copying of the file function.
Was thinking I would setup a path for each series some one renames. Me thinks that would make life easier.
Anyway, if you get a chance give her a try
 

Attachments

  • Ts-Renamer-3.zip
    30.6 KB

surfermc

Portal Pro
May 7, 2006
369
17
Dorset
Home Country
England England
The renaming function has stopped working with this version. The file does not get renamed irrespective of the check box setting.
 

Users who are viewing this thread

Top Bottom