Renaming including show name

Oct 31, 2009 at 11:53 AM

Hi,

can anyone tell me, how to rename the episode to "series name - e01s01 -episode name. In the pull down menu I can only select different versions of episode number - episode name.

Oct 31, 2009 at 12:13 PM

I have added a tick box next to the drop down that lets you prefix with series name.

This makes it simpler to change filename options.

I had to take out the custom file name option as it could cause problems.

This is not uploaded.

If I get time, I will upload this today, if not I will do in Monday.

my GPU has packed up on my main PC so I will have to do the work on a spare pc, the spare PC does not have VS2008 installed.

Steve

Coordinator
Oct 31, 2009 at 9:12 PM
Great. Thanks.

Sent from my iPhone

On Oct 31, 2009, at 7:13 AM, spider31 <notifications@codeplex.com> wrote:

From: spider31

I have added a tick box next to the drop down that lets you prefix with series name.

This makes it simpler to change filename options.

I had to take out the custom file name option as it could cause problems.

This is not uploaded.

If I get time, I will upload this today, if not I will do in Monday.

my GPU has packed up on my main PC so I will have to do the work on a spare pc, the spare PC does not have VS2008 installed.

Steve

Nov 3, 2009 at 7:40 AM

Thank you for the quick response. Is it ready yet?

Nov 3, 2009 at 9:41 PM

The code for that part is, but its also got some code changes for the 'prompt to rename' option. This has not been tested enough so I wont be ready for a day or so.

if you really want the new EXE you can download it from the beta release, this has no setup etc. I think the prompt for rename is fine, its just not really ready.

Steve

Nov 25, 2009 at 5:53 AM
spider31 wrote:

I have added a tick box next to the drop down that lets you prefix with series name.

This makes it simpler to change filename options.

I really wish you had not messed with what was working!

I use YAMJ for the PopcornHour player and I need the format as

TV Show S01E01 - Episode.avi

and I could easily custom make it this way before, but now because you disable the Custom rename option,

clicking on "prefix with TV show" makes it as

TV Show - S01E01 - Episode.avi

which will cause problems.  Please fix or allow an option *without* the forced extra characters.

Let the users decide what they need, not the programmer!

 

 

 

Nov 25, 2009 at 1:07 PM

Thanks for the feedback.

A user (not me) used a show name format of {e}  Ep Name - Show {s}

They renamed all the files using this naming option.

They ran it again, it messed-up ALL the file names as the code could not tell what {e} was meant to be. The first number is treated as the season number.

So… they started with

01 Ep Name
02 Ep Name
03 Ep Name

Then it changed to

01 Ep Name – Show Name 01
02 Ep Name – Show Name 01
03 Ep Name – Show Name 01
04 Ep Name – Show Name 01

They ran the rename again and it got into a mess as it thought that all the files where episode 1. They sent me a very pleasant email letting me know that they had trashed there TV show folders. To be honest I helped them get it back as the old file names happened to in the FILE metadata. (eg tags). We wrote a PowerShell script to fix it.

So in order to prevent users from making a user error me the programmer and to prevent it.

You will find that coders do make these types of decisions especially when it can lead to users corrupting data.

If users give feedback (positive is better) then it WILL steer the development.

I code for a living (well I am a technical architect so more high level design rather than code), this project is not an example of my best work as I don’t have the time to give to it. I would love to refactor the whole code base and implement proper coding patterns. I have worked in IT for 15 year. Developers have always made the decisions as the code is written they then take advice from product owners / sponsors / customers. Even more so with the advent of Agile, users get a say but the product owner has the final say as he or she know what all the users want. This is debatable and different project do this differently.

I will try to fix it this week. I will add a new option. If anyone else has some other file name requirements please shout as I will try to come up with a pattern to meet most people needs.

You cannot please all the people all the time...

 

Nov 28, 2009 at 11:40 PM

I truly understand all that you're saying, however for me (and probably others) the program is now unusable.

I too have more than 15 years in IT from programming, to support, admin, etc.

One thing you can't do is penalize 95% of the users because of the other 5%.  It's the same thing when adding

new features, these cannot be made the new default if it changes how the current users use a program.

In these cases you turn off a new feature and let the users decide when they want to use it.

 

As for the user mentioned above, it's hard to make *any* program idiot proof ;)  Garbage in, garbage out.

Anyways, perhaps more error checking could be done on the "Other ..." section to allow customization.

For instance, do not allow anything inside {x} where x is not an acceptable value. It seems this would be the

quickest way to solve the problem for the noobs, and for those more advanced users with specific needs.

 

Does that sound like a good interim solution to you?

 

Nov 29, 2009 at 8:49 AM

Leave it with me, I was thinking about this some more.

Maybe allow custom formats but have a rule about the order of show no and ep no or make the ep no 00 so when looking for this it always looks for 00. This will mean the show number can be confused with the ep number. 

The ep no is 00 at the moment but I think the logic for finding it when renaming does not assume its 00.

Steve

 

 

Nov 29, 2009 at 5:17 PM

I have just look at this again.

It use 00 for Show number so that wont work.

I think I will put the custom back in and see how people get on.

it will work fine for number show formats like 

02x12 
s01e12
12 Epname - Season 01

but it will break for

Season  01 - 12 Epname

It will look like its worked the first time, but when it tries to rename it twice will lose the ep number. I will try to validate with code by running the epname extractor against it.

It due to the fact that it uses the *first* number it finds for the ep number.

I will put a warning on the UI and upload a new version.

 

Nov 29, 2009 at 5:36 PM

I have put some validation code in.

if you enter a custom format, it takes your format and processes it agaist a test filename. It then trys to extract the episode number. If it gets the wrong episode number it does not let you use that file format.

pseudo code

 

testfilename = "12"
filename = makeFilenameFromCustomFormat(testFileName)
epnumber = getEpisodeFromFileName(filename)
if (epnumber not 12) FAIL let user know

 please download and give feedback.

Nov 29, 2009 at 7:06 PM

Ok, thanks for the work.

I downloaded the Nov 29 beta (Version 2.0.0.40896) and uncompressed it into my installation folder,

including the .dll file.  However the custom options remain greyed out.

I looked into C:\Windows and C:\Windows\System32 (on Win-XP) to see if existing .dll was in there, but nothing.

 

Should this new .dll file be placed into one of these system folders, or remain with the program folder?

 

Nov 29, 2009 at 9:46 PM

you just put the files in the app folder, no need to put things in system32.

using the dropdown select custom and then enter 'stuff' in the text box.

I have just downloaded from codeplex and I get version 2.0.0.33492 in the title.

Steve

Nov 30, 2009 at 7:29 AM

My Bad!

It seems that the last time I ran the installer, it was installed in another location then the one I found and updated :D

 

One thing I noticed with the "Confirm rename" screen is that clicking each is tedious when I run on many TV shows at once.

It would be very helpful to have "Select all" and "un-select all" options.

 

Nov 30, 2009 at 12:12 PM

the button at the top is select all, you also get a toggle button.

this is new work and has not been tested much, the UI has not been reviewed etc.

let me know how you get on.

Nov 30, 2009 at 4:03 PM
Edited Nov 30, 2009 at 4:03 PM

Ran the program with Custom renaming with Rename Files and Prompt Each File clicked.

Tried on Community series with files "Community S01E09" and "Community S01E10"

It does nothing except update the images and metadata. Even after removing metadata

for 09 and 10, re-run, still nothing changed.

Threads show "Done images -1" and "Done metadata -1"

Log shows...

 

30/11/2009 9:52:35 AM:  Done!
30/11/2009 9:52:35 AM:  Done Images : -1
30/11/2009 9:52:35 AM:  Getting directory information for season 01...
30/11/2009 9:52:35 AM:  Found Season Numbers for Series.
30/11/2009 9:52:35 AM:  Getting directory information in E:\Dad TV-Shows\Community\Images...
30/11/2009 9:52:35 AM:  Saving FolderItem Image File: E:\Dad TV-Shows\Community\Images\Season 1\folder.jpg
30/11/2009 9:52:35 AM:  Downloading FolderItem Image File: E:\Dad TV-Shows\Community\Images\Season 1\folder.jpg
30/11/2009 9:52:35 AM:  Locating... Banners, FanArt, and Posters (if any)...
30/11/2009 9:52:35 AM:  Done Season 1 : -1
30/11/2009 9:52:35 AM:  Finding series information for Season 1...
30/11/2009 9:52:35 AM:  Found series, getting details about the series...
30/11/2009 9:52:35 AM:  Finding series information for Images...
30/11/2009 9:52:35 AM:  Getting a listing of all files *.avi, *.mkv, *.mp4, *.mpg, *.mpeg, *.divx, *.ogm, and *.wmv in E:\Dad TV-Shows\Community
30/11/2009 9:52:35 AM:  Starting Process...
30/11/2009 9:52:34 AM:  Changed Root Directory To: E:\Dad TV-Shows\Community

***

Also, E:\Dad TV-Shows\Community\Images\Season 1\Images has a file 82231-1.jpg which is a french Vietnam poster.

E:\Dad TV-Shows\Community\Images\Images\Banners has the same wrong series banner, and duplicated in

E:\Dad TV-Shows\Community\Season 1\Images\Images\Banners\82231-1.jpg and E:\Dad TV-Shows\Community\Season 1\Images\Banner.jpg

 

After I remove season 1/metadata/ folder and all those banners and re-run, the wrong banners return and no metadata is re-created.

 

Nov 30, 2009 at 6:16 PM

Thats odd, the last change should not have affected the general processing.

From a command prompt Could you run (under the correct folder)

DIR /S /B > ToSend.TXT

and email me ToSend.TXT

Could you also let me know what your settings are.

I can then re-created the folder struct and try it for myself.

The prompt for rename does have an issue, it does not allways bring the window to the front. So the window could be hanging around behind another window. Once its finished processing all the files / folder it will then popup the form.

If you want to test just ONE FILE you don't need to rerun against the folder, just turn on the monitor and change the file name, just add a space to the file name.

Thanks

Steve

 

 

Nov 30, 2009 at 7:12 PM

E:\Dad TV-Shows\Community\backdrop.jpg
E:\Dad TV-Shows\Community\Community.nfo
E:\Dad TV-Shows\Community\Images\
E:\Dad TV-Shows\Community\Season 1\
E:\Dad TV-Shows\Community\ToSend.TXT
E:\Dad TV-Shows\Community\Images\FanArt\
E:\Dad TV-Shows\Community\Images\Posters\
E:\Dad TV-Shows\Community\Images\Season 1\
E:\Dad TV-Shows\Community\Images\FanArt\94571-1.jpg
E:\Dad TV-Shows\Community\Images\FanArt\94571-2.jpg
E:\Dad TV-Shows\Community\Images\Images\Banners\82231-g.jpg
E:\Dad TV-Shows\Community\Images\Posters\94571-1.jpg
E:\Dad TV-Shows\Community\Images\Season 1\folder.jpg
E:\Dad TV-Shows\Community\Images\Season 1\Images\82231-1.jpg
E:\Dad TV-Shows\Community\Season 1\Community S01.txt
E:\Dad TV-Shows\Community\Season 1\Community S01E01 - Pilot.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E02 - Spanish 101.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E03 - Introduction to Film.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E04 - Social Psychology.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E05 - Advanced Criminal Law.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E06 - Football, Feminism and You.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E07 - Introduction to Statistics.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E08 - Home Economics.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E09.mkv
E:\Dad TV-Shows\Community\Season 1\Community S01E10.mkv
E:\Dad TV-Shows\Community\Season 1\folder.jpg
E:\Dad TV-Shows\Community\Season 1\Images\
E:\Dad TV-Shows\Community\Season 1\Season 1.fanart.jpg
E:\Dad TV-Shows\Community\Season 1\Season 1.jpg
E:\Dad TV-Shows\Community\Season 1\Images\94571-1.jpgE:\Dad TV-Shows\Community\backdrop.jpg

Select Drop folder:          E:\Dad TV-Shows

Select TV Show folder:   E:\Dad TV-Shows\Community

Options tab - items clicked:

- Save metadata

- Save Banner art

- Extract Image from video

- Rename file

- Prompt each file

- Check for Updates

- Prefix with showname

--- Format --> Custom -->   {1} S{2}E{3} - {4}

 

I tried using "Force refresh" but it has no effect.

 

 

 

Nov 30, 2009 at 9:07 PM

I have just created some dummy files to test with and it works for me

it renames shows as follows :

 

08 - Home Economics.mkv
09 - Debate.mkv
10 - Environmental Science.mkv

08 - Home Economics.mkv
09 - Debate.mkv
10 - Environmental Science.mkv

From version 2 onwards it will uses the WinINET cache (this is the same cache the IE uses and other .NET apps can use it to, it speeds things up)

If you are know a tool called Fiddler this will tell you if the program is getting the correct data.

To get it to process ONE show just rename it, turn the monitor and rename Community S01E10.mkv to 10.mkv it will force the program to get the data about the file and rename it. 

If the file is inuse it will fail, the file can be in use due to Windows genrating thumbs or other people (or processes) accessing, the code does not handle errors to well it just skips to the next file.

I would start fiddler (download from http://www.fiddler2.com/fiddler2/)

Get TVMETADATA ready, eg open it and turn on the monitor

rename the file, you will see it pick up the name and you will see the action in fiddler. You should see the following requests.

 

 

GET http://www.thetvdb.com/api/GetSeries.php?seriesname=Community
200 OK

GET http://www.thetvdb.com/api/E837AF9EE7601DB2/series/94571/all/
200 OK

 

GET http://www.thetvdb.com/api/E837AF9EE7601DB2/series/94571/banners.xml
200 OK

if you see any 304 codes, then its using the cache.

Use fiddler to clear the WinInet Cache, this is done with the tools menu ( Tools -> Clear WinINET Cache)

If this fixes it then it could be your IE settings. The WinINET cache gets its settings from IE. Let me know how you get on.

Also, watch out for the rename Dialog going behind other windows, I will fix bug soon.

Thanks

Steve

 


Dec 1, 2009 at 3:35 AM
Edited Dec 2, 2009 at 5:38 PM

> > - Prefix with showname

> > --- Format --> Custom --> {1} S{2}E{3} - {4}

> I have just created some dummy files to test with and it works for me.
> It renames shows as follows :
>
> 08 - Home Economics.mkv
> 09 - Debate.mkv
> 10 - Environmental Science.mkv

This is wrong according to my settings above.

 

Those GET links work just fine for me in Firefox 3.5, I don't use MS-IE but IE 6 is installed.

 

I turned on monitoring, which I never use as I open and run the program as needed.

Modified eps 9 and 10 to add a space in the filename, and both got new metadata/* files

and an individual popup for each to prompt rename action.

 

I removed all series.xml and images.xml and metadata/* as well as Images/ folders because

that french series still had info in the files (I don't have that series). 

 

30/11/2009 9:28:38 PM:  Done!
30/11/2009 9:28:38 PM:  Done Images : -1
30/11/2009 9:28:38 PM:  Getting directory information for season 01...
30/11/2009 9:28:38 PM:  Found Season Numbers for Series.
30/11/2009 9:28:38 PM:  Getting directory information in E:\Dad TV-Shows\Community\Images...
30/11/2009 9:28:38 PM:  Saving Banner Image File: E:\Dad TV-Shows\Community\Images\Images\Banners\82231-g.jpg
30/11/2009 9:28:38 PM:  Downloading Banner Image File: E:\Dad TV-Shows\Community\Images\Images\Banners\82231-g.jpg
30/11/2009 9:28:38 PM:  Saving FolderItem Image File: E:\Dad TV-Shows\Community\Images\banner.jpg
30/11/2009 9:28:38 PM:  Downloading FolderItem Image File: E:\Dad TV-Shows\Community\Images\banner.jpg
30/11/2009 9:28:38 PM:  Saving Poster Image File: E:\Dad TV-Shows\Community\Images\Season 1\Images\82231-1.jpg
30/11/2009 9:28:38 PM:  Downloading Poster Image File: E:\Dad TV-Shows\Community\Images\Season 1\Images\82231-1.jpg
30/11/2009 9:28:38 PM:  Done Season 1 : -1
30/11/2009 9:28:37 PM:  Locating... Banners, FanArt, and Posters (if any)...
30/11/2009 9:28:37 PM:  Finding series information for Season 1...
30/11/2009 9:28:37 PM:  Found series, getting details about the series...
30/11/2009 9:28:37 PM:  Finding series information for Images...
30/11/2009 9:28:37 PM:  Getting a listing of all files *.avi, *.mkv, *.mp4, *.mpg, *.mpeg, *.divx, *.ogm, and *.wmv in E:\Dad TV-Shows\Community
30/11/2009 9:28:37 PM:  Starting Process...

 

82231-g.jpg is stiill the wrong banner, and why is the program creating Season 1\Images\82231-1.jpg inside of E:\Dad TV-Shows\Community\Images\ ?

I will now try fiddler and clearing WinINET cache.

 

Edit... Yes, 304 errors...

#    Result    Protocol    Host    URL    Body    Caching    Content-Type    Process    Comments    Custom    
2    304    HTTP    www.thetvdb.com    /api/E837AF9EE7601DB2/series/94571/all/    0            tvmetadatafinder:2940            
3    200    HTTP    www.thetvdb.com    /api/E837AF9EE7601DB2/series/94571/banners.xml    1,795        application/xml    tvmetadatafinder:2940            
4    304    HTTP    www.thetvdb.com    /api/E837AF9EE7601DB2/series/94571/all/    0            tvmetadatafinder:2940            
5    200    HTTP    www.thetvdb.com    /api/E837AF9EE7601DB2/series/94571/banners.xml    1,795        application/xml    tvmetadatafinder:2940         

<!-- .REQUEST { font: 8pt Courier New; color: blue;} .RESPONSE { font: 8pt Courier New; color: green;} -->GET /api/E837AF9EE7601DB2/series/94571/all/ HTTP/1.1
Host: www.thetvdb.com
If-None-Match: "538c2c-2f92-479789c0d5b00;478a937fd5cc0"
If-Modified-Since: Sun, 29 Nov 2009 01:40:28 GMT
Connection: Keep-Alive

HTTP/1.1 304 Not Modified
Date: Tue, 01 Dec 2009 04:41:48 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0
Connection: Keep-Alive
Keep-Alive: timeout=5, max=500
ETag: "538c2c-2f92-479789c0d5b00;478a937fd5cc0"


GET /api/E837AF9EE7601DB2/series/94571/banners.xml HTTP/1.1
Host: www.thetvdb.com

HTTP/1.1 200 OK
Date: Tue, 01 Dec 2009 04:41:48 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0
Last-Modified: Sun, 29 Nov 2009 01:40:27 GMT
ETag: "42297f-703-479789bfe18c0;478a937fd5cc0"
Accept-Ranges: bytes
Content-Length: 1795
Content-Type: application/xml


GET /api/E837AF9EE7601DB2/series/94571/all/ HTTP/1.1
Host: www.thetvdb.com
If-None-Match: "538c2c-2f92-479789c0d5b00;478a937fd5cc0"
If-Modified-Since: Sun, 29 Nov 2009 01:40:28 GMT

HTTP/1.1 304 Not Modified
Date: Tue, 01 Dec 2009 04:42:16 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0
ETag: "538c2c-2f92-479789c0d5b00;478a937fd5cc0"


GET /api/E837AF9EE7601DB2/series/94571/banners.xml HTTP/1.1
Host: www.thetvdb.com

HTTP/1.1 200 OK
Date: Tue, 01 Dec 2009 04:42:16 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0
Last-Modified: Sun, 29 Nov 2009 01:40:27 GMT
ETag: "42297f-703-479789bfe18c0;478a937fd5cc0"
Accept-Ranges: bytes
Content-Length: 1795
Content-Type: application/xml


 

Dec 1, 2009 at 8:39 AM

It looks like its could have been a caching issue.

I will add more logging when it fails to rename an episode.

The 304 status code do not mean error. It just means that the copy held in the local cache is still valid. You can see the date of the cache in the header If-Modified-Since

I think your banner issue could be thetvdb metadata, it looks like it could be the image for the season cover. I have not change that area of the code and its always worked for me. You can view the XML in fiddler, let me know how you get on.

 

Steve

 

Dec 8, 2009 at 3:39 PM
Edited Dec 8, 2009 at 7:19 PM

This caching issue is still a BIG problem... makes the program unusable.

 

Ex: I removed all contents generated by this program for "Being Erica", leaving only the video files and .nfo

Options: Force Refresh -- Select TV Show Folder: E:\TV-Shows\Being Erica

Files are named like "Being Erica S01E01 - Dr. Tom.mkv"

Click on Process TV show (mainly to grab images)...

08/12/2009 9:34:58 AM:  Done!
08/12/2009 9:34:58 AM:  Done Season 1 : -1
08/12/2009 9:34:57 AM:  Finding series information for Season 1...
08/12/2009 9:34:57 AM:  Getting a listing of all files *.avi, *.mkv, *.mp4, *.mpg, *.mpeg, *.divx, *.ogm, and *.wmv in E:\TV-Shows\Being Erica
08/12/2009 9:34:57 AM:  Starting Process...

That's all I get!

 

Do you have any newer beta to test out?

Dec 8, 2009 at 4:15 PM

So, it does not rename the ep? have you looked at the reponses from fiddler to see if you are getting 304s.

Cheers

Steve

Dec 8, 2009 at 4:41 PM

Just read your message again. it looks like you have not put the shows in a folder for the season.

eg

e:\tv shows\being erica\Season 1

is this the case? could you run the dir /s /b  and send me the output I will try the same show names on my pc.

 

Dec 8, 2009 at 7:24 PM

Yes, ofc they are inside season 1 (similar to post about by me dated Nov 30 at 1:12 PM).

Everything is setup as required, and it all worked fine in the previous versions before Oct.


I'll check fiddler again later, but this should not matter unless it's cached from 1 week ago.

The program should be smart enough to know that there's no metadata folder, and having the

"Force refresh" should force everything new again.  ie:  check and re-download missing images.

 

Is there not a way to turn off this new caching feature?


Dec 9, 2009 at 12:52 AM
Edited Dec 9, 2009 at 9:09 AM

I added a new episode of CS NY "CSI New York S06E09.mkv"  into folder... "E:\Dad TV-Shows\CSI New York\Season 6\"

 

08/12/2009 6:47:28 PM:  Done!
08/12/2009 6:47:28 PM:  Done Images : -1
08/12/2009 6:47:28 PM:  Getting directory information in E:\Dad TV-Shows\CSI New York\Images...
08/12/2009 6:47:28 PM:  Saving Banner Image File: E:\Dad TV-Shows\CSI New York\Images\Images\Banners\82231-g.jpg
08/12/2009 6:47:28 PM:  Downloading Banner Image File: E:\Dad TV-Shows\CSI New York\Images\Images\Banners\82231-g.jpg
08/12/2009 6:47:28 PM:  Saving FolderItem Image File: E:\Dad TV-Shows\CSI New York\Images\banner.jpg
08/12/2009 6:47:28 PM:  Downloading FolderItem Image File: E:\Dad TV-Shows\CSI New York\Images\banner.jpg
08/12/2009 6:47:28 PM:  Locating... Banners, FanArt, and Posters (if any)...
08/12/2009 6:47:27 PM:  Done Season 6 : -1
08/12/2009 6:47:27 PM:  Finding series information for Season 6...
08/12/2009 6:47:27 PM:  Found series, getting details about the series...
08/12/2009 6:47:26 PM:  Finding series information for Images...
08/12/2009 6:47:26 PM:  Getting a listing of all files *.avi, *.mkv, *.mp4, *.mpg, *.mpeg, *.divx, *.ogm, and *.wmv in E:\Dad TV-Shows\CSI New York
08/12/2009 6:47:26 PM:  Starting Process...

 

Fiddler does give me a 304, but copy/paste of the URL it tries to load takes me to that french war series (same as 82231 images above)

http://www.thetvdb.com/api/E837AF9EE7601DB2/series/82231/all/

 

Could the api number no longer be valid?

Could my IP be banned from valid results?

Does the program no longer handle full paths with spaces in in?

 

E:\Dad TV-Shows\CSI New York\Season 6>dir /s /b
E:\Dad TV-Shows\CSI New York\Season 6\CSI New York S06E08 - Cuckoo's Nest.mkv
E:\Dad TV-Shows\CSI New York\Season 6\CSI New York S06E09.mkv
E:\Dad TV-Shows\CSI New York\Season 6\metadata
E:\Dad TV-Shows\CSI New York\Season 6\Season 6.fanart.jpg
E:\Dad TV-Shows\CSI New York\Season 6\Season 6.jpg
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E01 - Epilogue.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E02 - Blacklist.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E03 - LAT 40� 47' NLong 73� 58'W.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E04 - Dead Reckoning.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E05 - Battle Scars.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E06 - It Happened to Me.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E07 - Hammer Down.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI New York S06E08 - Cuckoo's Nest.xml
E:\Dad TV-Shows\CSI New York\Season 6\metadata\CSI NY S06E01 - Epilogue.xml

Dec 9, 2009 at 7:45 AM
Edited Dec 9, 2009 at 7:45 AM

I have just tested with season 1 and season 2 of Being Erica it worked first time with no issues.

The logic for how it handles the files in the season folder has not changed, so it should not be broken. 

The caching cannot be turned off, I may add that. It should work fine without it though. You can clear the cache with fiddler.

The caching could use the IE settings, so if you have the option of 'dont' check then maybe the program will not check to.

The fact that you are getting the wrong show is very strange, maybe the search for the season details failed.

I will build a version with no cache so you can have a look.

send me a private message with your email and I will email the EXE to you. 

Steve

 

Dec 9, 2009 at 8:42 AM
Edited Dec 9, 2009 at 8:51 AM

I was thinking about this some more on my cycle to work :)

I am certain that caching is not the cause. The way caching works is :

Client gets page
Client stores the datetime of when it got the page
When the client gets the page again it sends the datetime of its local copy
The server compares this datetime against the server version and it will send a new copy or tell the client that it can use the cache.

Caching can break if;

You configure IE not to check the page version against the server.
You use one of those local proxy’s that claims to make your webpages load faster (some of them work cos they don’t check the server versions of pages even if they should)
The server is not implementing caching correctly (I am certain that this is not the case with thetvdb)

The fact that you are getting French shows is very od are you saying the it was getting show "Images Inconnues: La Guerre du Vietnam" for CSI?

This is the url for that show

http://www.thetvdb.com/?tab=season&seriesid=82231&seasonid=33013&lid=7

and the french version

http://www.thetvdb.com/?tab=season&seriesid=82231&seasonid=33013&lid=17

They have the same epnames, but its not CSI.

Steve

PS

I will still do a build with caching off, I will do a special debug build that allows you to pass params to turn off caching. I will also add a param to force it to add the correct language to the HEADER this may help.

Dec 9, 2009 at 9:53 AM

That's why this is all so weird. Adding a new file inside the season folder should trigger some search.

First off, I un-installed the program and then re-installed public version and copied over the beta-lib version.

And I also went into Internet Explorer (6.0) and cleared all temp files, and force page load every time.

 

To prove I'm not crazy...

http://www.mediafire.com/imageview.php?quickkey=yluaeynjmy0

 

Let me know if you still want a PM, or simply link to an online sharing site for the test beta.

 

Dec 9, 2009 at 5:21 PM

the show is called CSI: NY :) 

http://www.thetvdb.com/?tab=series&id=73696&lid=7

Rename you folder to CSI NY and it should work, I just tested this and it worked for me.

The error logging needs improving as it should have let you know that the show lookup failed.

 

Dec 9, 2009 at 11:34 PM

I think they changed it to CSI New York, and now someone changed it back :(

Either way, I changed the file names and folder names as needed... same problem.

 

09/12/2009 5:30:28 PM:  Done!
09/12/2009 5:30:28 PM:  Done Images : -1
09/12/2009 5:30:28 PM:  Getting directory information in E:\Dad TV-Shows\CSI NY\Images...
09/12/2009 5:30:28 PM:  Saving Banner Image File: E:\Dad TV-Shows\CSI NY\Images\Images\Banners\82231-g.jpg
09/12/2009 5:30:27 PM:  Saving FolderItem Image File: E:\Dad TV-Shows\CSI NY\Images\banner.jpg
09/12/2009 5:30:27 PM:  Downloading Banner Image File: E:\Dad TV-Shows\CSI NY\Images\Images\Banners\82231-g.jpg
09/12/2009 5:30:27 PM:  Downloading FolderItem Image File: E:\Dad TV-Shows\CSI NY\Images\banner.jpg
09/12/2009 5:30:27 PM:  Locating... Banners, FanArt, and Posters (if any)...
09/12/2009 5:30:26 PM:  Done Season 6 : -1
09/12/2009 5:30:26 PM:  Finding series information for Season 6...
09/12/2009 5:30:26 PM:  Found series, getting details about the series...
09/12/2009 5:30:25 PM:  Finding series information for Images...
09/12/2009 5:30:25 PM:  Getting a listing of all files *.avi, *.mkv, *.mp4, *.mpg, *.mpeg, *.divx, *.ogm, and *.wmv in E:\Dad TV-Shows\CSI NY
09/12/2009 5:30:25 PM:  Starting Process...
09/12/2009 5:30:06 PM:  Changed Root Directory To: E:\Dad TV-Shows\CSI NY
09/12/2009 5:29:52 PM:  Changed Root Directory To: E:\Dad TV-Shows

 

Caching is not a problem as fiddler2 reported all 200 codes (new files).

 

I am going to upgrade from IE 6 to IE 7 or 8 since another user project is also giving me problems with a built-in IE browser.

I'll let you know more later.

 

Dec 10, 2009 at 6:47 AM

I will run it again and post the output. I dident test with Season 6 files I just used some dummy Season 1 files.

I presume you get the same problem if you turn on the monitor and rename a file.

 

 

Dec 11, 2009 at 2:06 AM

The only way I seem to be able to get anything working is if I set the monitor folder and turn monitoring ON.

However, I *must* set the TV Show folder to be want I need to work on.

Monitoring: E:\Dad TV-Shows\

TV Show: E:\Dad TV-Shows\CSI NY\

 

If I change a file name in E:\Dad TV-Shows\CSI NY\Season 6\ then it picks up the change and prompts me for rename.

 

With monitoring still on, if I then change TV Show to CSI Miami\, and change a file name or drop a new file -- nothing happens.

If I turn monitoring OFF, and then change a file name, it gets picked up.

It will work it if "Process TV Show" but not unless monitoring is ON.

 

With monitor folder and TV Show folder set to E:\Dad TV-Shows\ and clicking "Process TV Show", it seemed to go through *all* TV shows.

 

 

 

Dec 11, 2009 at 7:16 AM

I may change the code so you can point it at ANY folder. It has a bug if you point it at the show folder, you can see what its doing in the log. It thinks the season folders are SHOWS.

I use the drop folder for all my shows, unpack the RAR to my drop folder it it works every time.

Drop folder is not for everyone, if you have more than one TV SHOW folder then the drop folder wont work unless you keep changing your show folder. (Know how I can fix this, its comming)

But if the drop folder dont work, just use the monitor or do a a full rescan. I have 30 shows in my test system with 300 test episodes and it takes arround 20secs to process, if I reprocess on the same day it takes arround 5.

If you just want to rename a show and gets some images, I found the best way to use the monitor is just to rename the file and use the monitor.

I was thinking of making it list all the shows (like it does non the new show tab) but add a button to RESCAN a show. This should work for you. I was also going to allow you to use more than one folder so you can have E:\MY SHOWS D:\OTHER SHOWS and it would monitor/ scan / let you rescan from all shows.

 

Dec 11, 2009 at 10:16 PM

For me drop folder would be difficult because I have multiple HDD's with TV shows on them (old and new),

other HDD for Kids' TV, etc.

Dec 11, 2009 at 10:39 PM

I have a few ideas about how a drop folder system would work even with multiple show folders. Its just getting the time todo it.

Dec 31, 2009 at 2:20 AM

Any luck finding more time to work on this?

 

Would love to see another beta that addresses the problems discussed here for "Process TV Show"

so that it properly handles when I update a folder with a new episode, and manually process.

 

 

Jan 6, 2010 at 7:10 PM

My better half and I have just had a baby, so at present not much sleep and not much free time.

I am intending todo a quick fix so you can select any folder regardless of it not being a TV SHOW root folder. I should have this done this week.

In future, I will be making the program list all shows from multi folders, it will allow you to 'quick scan' a show for new files. This will mean people with more than one show folder will not have to keep on changing the working folder.

 

Jan 8, 2010 at 6:33 PM

I have made a new beta.

 

you can now select a show folder and rescan it. Note DO NOT select the season folder select the root show, eg select

D:\SHOWS\Lost and NOT D:\SHOWS\Lost\Season 1

It took longer than expected to make as all the unit tests that tested with the show CHUCK did not work, not sure why.

I have just had a new baby, so I don’t have much time at the moment.

Steve 

 

Jan 10, 2010 at 2:28 AM

Congratulations on the new family arrival!

They are a lot of work, no doubt about it.

 

Thank you very much for the update and I'll test it out when I update some shows.

 

Mar 7, 2010 at 9:23 PM

Hi spider31,

Baby keeping you busy these days?  :)

 

I have been getting fair results with the program as long as I set the Drop Folder

to a parent of the folder I want to update.  I use "Process TV Show" for new folders for scanning

and then use "Monitoring" to drop new episodes as they arrive.

 

The biggest drawback for me is still the multiple times I have to go back and forth on different

hard drive locations, using browse instead of a previously accessed drop-down list.

 

Mar 15, 2010 at 8:02 AM
Edited Mar 15, 2010 at 8:03 AM

I will be allowing more than one TV show folder soon.

 

Oct 25, 2010 at 5:39 AM

Can you help me out with your API?

I am just trying to process one file at the time in a PowerShell script.

I do not need your concept of drop folder since my script already contains this logic. Can you provide a simple Cmdlet or give me some quick guidance that would help me building one from your DLL?