Kodi Community Forum

Full Version: Easy Media Manager - Need help with cleaning up file/folder names and RegEx
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys well im working on a new project. this will be my biggest coding project i have done.

Image
I got all the XML reading and writing working...
I can grab data from TVDB (not enabled currently)
and all other things like that


However i need your help with getting REGEX's working as i have no idea how regex work, i just want to detect the name of a tvshow/movie from a folder/file like other media managers do.


Here is a preview video of what i have done so far Smile

Youtube Link
Hopefully someone will be willing to assist.

Extremely Alpha Release : http://puu.sh/28jCw , hardly any features yet!!!
Demands a folder layout if your movies are not in seperate folders it won't currently work Smile
Doesn't save settings either as i am currently working on getting name detection working

ps: To vbat and huey, not trying to compete with mediacompanion just felt like trying to make a media manager from scratch Smile
None taken! I think what you are doing is a great learning opportunity, and wish you all the best! And hope you achieve success!
(2013-02-25, 23:02)HueyHq Wrote: [ -> ]None taken! I think what you are doing is a great learning opportunity, and wish you all the best! And hope you achieve success!

Thanks, But not going to get far if i can't work out RegEx (Regular Expressions) out.
Don't worry, I'll sort you out!
(2013-02-25, 23:12)HueyHq Wrote: [ -> ]Don't worry, I'll sort you out!

Thanks Nod
I haven't got much knowledge of RegEx either, but I found some useful ones that i've been using within my advancedsettings.xml file and been using within ViMediaManager.
Maybe these will help you along too.

http://pastebin.com/fBUNhfFW

Good luck!
(2013-02-27, 02:09)MariusTh86 Wrote: [ -> ]I haven't got much knowledge of RegEx either, but I found some useful ones that i've been using within my advancedsettings.xml file and been using within ViMediaManager.
Maybe these will help you along too.

http://pastebin.com/fBUNhfFW

Good luck!

Thanks, This should help,

Im trying to make a simple but effective media manager... keep it simple and easy to use compared to media companion and ember media manager. (not that there is anything wrong with them... it's just they are complicated Big Grin)

Nice media manager, Shame its OSX only Big Grin currently don't have a MAC or Hackintosh. (did have a hackintosh but i broke something)

Thanks again. +rep
Those where my thoughts as well while building ViMM, KISS all the way! (Keep It Stupidly Simple) Don't let users mess around with things they probably don't know anything off like RegExp. ^^
Not sure whether i'm always succeeding, but at least it looks pretty. Wink
(2013-02-27, 02:20)MariusTh86 Wrote: [ -> ]Those where my thoughts as well while building ViMM, KISS all the way! (Keep It Stupidly Simple) Don't let users mess around with things they probably don't know anything off like RegExp. ^^
Not sure whether i'm always succeeding, but at least it looks pretty. Wink

Hehe, Yeah looks awesome, Nice layout although i would presume you can do more visual stuff on mac than on windows so thats probably why.

Also you ViMediaManager has gave me some ideas Smile, not copying or anything like that just a few visual tweaks Smile
Nice! i'm giving inspiration instead of taking it for once. ^^
If you use this : http://gskinner.com/RegExr/

You will be up and running in no time... it makes building RegEx super simple right from your browser. You can test the results on-the-fly as you are building the expression

I use it all the time...

-Pr.
(2013-02-27, 08:20)Pr.Sinister Wrote: [ -> ]If you use this : http://gskinner.com/RegExr/

You will be up and running in no time... it makes building RegEx super simple right from your browser. You can test the results on-the-fly as you are building the expression

I use it all the time...

-Pr.

Thanks to you aswell Smile

Quote:If my post helped, thank me by adding to my reputation! Smile
Done Smile