Fixed: Filename processor not working

hameed

24-12-2008 18:19:13

OK maybe not perfectly after all :-/
I have 4 folders each with one season of Battlestar Galactica, TvRename renamed Seasons 1 and 4 but not 2 and 3!

The folder structure is like this...
G:\Series\Battlestar Galactica\Season 1\cshtr.com-BattleStar.Galactica-S01.E01.avi
But some files have the episode name as well, like cshtr.com-BattleStar.Galactica-S01.E01 - [episode name].avi
Maybe that's why the regexp didn't work?

sstteevvee

26-12-2008 11:38:20

But some files have the episode name as well, like cshtr.com-BattleStar.Galactica-S01.E01 - [episode name].avi

Having the episode name in there afterwards should be ok, as long as the episode number is followed by something that isn't a letter (e.g. space, dot, dash, etc.). Can you give me an exact copy and paste of the filename that isn't working? I tried that one and it was fine.

sstteevvee

26-12-2008 11:42:54

'Lost/Series 1/Episode 5'
Add a new filename processor, turn on "Use Full Path", and put in:


series (?<s>[0-9]+)\\episode (?<e>[0-9]{1,3})

hameed

27-12-2008 00:49:45

Having the episode name in there afterwards should be ok, as long as the episode number is followed by something that isn't a letter (e.g. space, dot, dash, etc.). Can you give me an exact copy and paste of the filename that isn't working? I tried that one and it was fine.
cshtr.com-BattleStar.Galactica-S02.E02-Valley.Of.Darkness.avi

For some reason Season 1 and 4 renamed correctly but two and three didn't

billybuds

27-12-2008 04:14:36

Thanks sstteevvee.

sstteevvee

27-12-2008 14:58:47

cshtr.com-BattleStar.Galactica-S02.E02-Valley.Of.Darkness.avi
Works ok for me here. Can you go to the Help menu, choose "Bug Report". Turn on "settings files" and "folder scan", then hit "Create". Email the output to tvrename[at]tvrename.com - and I'll have a look into why its not working for you.

Edit: I've just noticed a bug that if you edit the filename processors, it won't prompt you to save your settings before exiting - so can you check the filename processing regular expression is still there? If not, add it in, and then choose File->Save to save it.

hameed

27-12-2008 19:23:03

cshtr.com-BattleStar.Galactica-S02.E02-Valley.Of.Darkness.avi
Works ok for me here. Can you go to the Help menu, choose "Bug Report". Turn on "settings files" and "folder scan", then hit "Create". Email the output to tvrename[at]tvrename.com - and I'll have a look into why its not working for you.

Well do once I get back home.

hameed

28-12-2008 09:04:56

I just emailed you the log.

It seems for some reason that it's simply skipping the folders for seasons 2,3 & 4 and only scanning season 1

sstteevvee

28-12-2008 11:10:37

Yeah.. That's what the log indicates, too. Can you check that the other season folders are correctly named, i.e. "g:\series\BattleStar Galactica\Season 2" with no extra spaces before or after?

If you do a missing check, does it complain about the missing folders for BSG seasons 2,3,4?

hameed

28-12-2008 18:11:47

Can you check that the other season folders are correctly named, i.e. "g:\series\BattleStar Galactica\Season 2" with no extra spaces before or after?
They are...Just to make sure I renamed them then named them back as Season2

If you do a missing check, does it complain about the missing folders for BSG seasons 2,3,4?
No it doesn't

Anyway I can just reset every setting for TvRename? Tried flushing the cache and deleting the watched folders but some settings are still there...It didn't ask me not to ignore the folders I told it to ignoe before

*BTW Maybe these posts should be in a new thread? :)

sstteevvee

28-12-2008 18:21:15

If you have the default "folder per season" setting, it should be "Season[space]2".

Can you double-check that the filename processor rule for BSG is still in your list? There was a bug where it would not get saved sometimes, i.e.:

(^|[^a-z])s(?<s>[0-9]+).e(?<e>[0-9]{2,})[^a-z]

If its not there, re-add it, then do "File->Save". Then see if it works ok. It doesn't look like it's there in the settings file you sent me.

You can also try removing BSG from "My Shows", then re-adding it, to get its settings back to the default.

(And yes.. I'll make/move this stuff to a new thread soon.)

hameed

28-12-2008 19:11:04

Yay it worked :)
The "Delete" button was the one I was looking for. I added the regexp and it worked (meaning it did get saved) but then it got forgotten!
After deleting the Series from My shows I had to add it manually and this time it saw all the Seasons and renamed them correctly.

sstteevvee

28-12-2008 23:11:04

Excellent. (Also, I've split this off into its own thread).