Additions to filename cleaning
#1
Hi!

I have some ideas for improving the filename cleaning mechanism:

- add Regex-support: so we could remove things like dates etc
- add support for removing words that exist in the filepath:
example:
\series\desperate housewives\season 2\desperate housewives s02e01 next.avi
the "pathwords" would be "series" "desperate housewives" "season 2"
so the final filename would be: s02e01 next

I hope this can be implemented.

Tia

Morte

PS: NodNod Thanks for all the hard work everyone puts into this project!!!NodNod
Reply
#2
create an advancedsettings.xml and go for it.
Image
Reply
#3
I only found the <videostacking> - tag and this tag doesnt help me (i think :confused2Smile.

If i am wrong please post me an example.

Tia

Morte
Reply
#4
isnt filename cleaning only enabled when stacking is enabled?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#5
I think so yes
Image
Reply
#6
actually those two should really be split imho.. and as said add a regexp section for cleaning of filenames.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
ok, i thought so. i wasnt sure if that had changed. i agree that it should be seperated from the stacking, but it wont it then make stacking harder to do as the stacking regexps need to handle the newly cleaned names? either way, make it optional. i like my filenames. i clean them myself in my filesystem.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#8
they are separate beasts in the code, just so u know.
Reply
#9
yeah but it works differently. the piece you're refering to just removes certain tokens ("divx", "xvid", group names, etc) from the filename, and replaces _ with spaces. having one regexp go before another regexp means that the second one needs to know what the first one did already.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#10
yeah, i know. just sounded like you thought this code was nested / not separable.
Reply

Logout Mark Read Team Forum Stats Members Help
Additions to filename cleaning0