Scripting Help Needed
Posted: 19 Nov 2013, 12:06
Hi i need to write a script and i am completely lost
here is the situation i am in
For first time viewing i download basic low res releases.Some of them has mkv ext. some of them has mp4.All files downloads to a temp folder to be processed later.
Overnight i download high res (mostly 1080p) web dl releases to the same temp folder for.This is for archiving.And note that this release will be downloaded after the low res releases.
Sidenote
I use xbmc to watch and use metadata and if i am honest honest its prettier to look at.
And the archiving system is basic
Media
Series (has subfolders named after series name using tvdb)
Movies (has subfolders named after movies name and year)
Animes (Same as series)
Cat Videos
I will catogorize the temp folder to specific folders too (just like the media folder above) if i can get the script working.
Lets get to the problem
I use gui most of the time since i am a complete stranger to coding.So if i understand correctly i must write 3 or 4 scripts to get this working.
Lets Start with an example
First downloaded file - (mp4 - res 404x720)
how.i.met.your.mother.s09e10.hdtv.x264.killers.mp4
it will be renamed to
How I Met Your Mother - S09E10 - Mom and Dad.mp4
and moved the matching folder in archiving (D:/Media/Series/How I Met Your Mother)
Late Release - Web DL (MKV - 1080x1920)
how.i.met.your.mother.s09e10.1080p.web.dl.dd5.1.mkv
it will be renamed to
How I Met Your Mother - S09E10 - Mom and Dad.mkv
and moved the same archiving folder (D:/Media/Series/How I Met Your Mother)
Now in the same folder (since the extensions are diffirent there is no overwriting)
there is
How I Met Your Mother - S09E10 - Mom and Dad.mp4
How I Met Your Mother - S09E10 - Mom and Dad.mkv
and even with the same extension (overwritng possible) i cant move the file in gui.
So
Problem #1
Overwriting and keeping single/best copy of the media.(note that the best release probably will be downloaded latest and the file extensions can be diffirent)
Lets move on
Problem #2
I never used scripts so some one must enlighten me.When renaming using gui i can choose the show so will there be any windows popping to asking me.This may cause a problem in animes.
Final Structure will be
For Temp Download Folder
Temp
Animes
Series
Movies
Music
Cat Videos.
Media Folder will have the same structure before
Media
Series (has subfolders named after series name using tvdb)
Movies (has subfolders named after movies name and year)
Animes (Same as series)
Cat Videos
So each script will look for files in specific folder and move them to specific folders (like Anime>>Anime)
You must understand that i dont know how to write scripts at all
If someone can help me please I am at complete lost here.
here is the situation i am in
For first time viewing i download basic low res releases.Some of them has mkv ext. some of them has mp4.All files downloads to a temp folder to be processed later.
Overnight i download high res (mostly 1080p) web dl releases to the same temp folder for.This is for archiving.And note that this release will be downloaded after the low res releases.
Sidenote
I use xbmc to watch and use metadata and if i am honest honest its prettier to look at.
And the archiving system is basic
Media
Series (has subfolders named after series name using tvdb)
Movies (has subfolders named after movies name and year)
Animes (Same as series)
Cat Videos
I will catogorize the temp folder to specific folders too (just like the media folder above) if i can get the script working.
Lets get to the problem
I use gui most of the time since i am a complete stranger to coding.So if i understand correctly i must write 3 or 4 scripts to get this working.
Lets Start with an example
First downloaded file - (mp4 - res 404x720)
how.i.met.your.mother.s09e10.hdtv.x264.killers.mp4
it will be renamed to
How I Met Your Mother - S09E10 - Mom and Dad.mp4
and moved the matching folder in archiving (D:/Media/Series/How I Met Your Mother)
Late Release - Web DL (MKV - 1080x1920)
how.i.met.your.mother.s09e10.1080p.web.dl.dd5.1.mkv
it will be renamed to
How I Met Your Mother - S09E10 - Mom and Dad.mkv
and moved the same archiving folder (D:/Media/Series/How I Met Your Mother)
Now in the same folder (since the extensions are diffirent there is no overwriting)
there is
How I Met Your Mother - S09E10 - Mom and Dad.mp4
How I Met Your Mother - S09E10 - Mom and Dad.mkv
and even with the same extension (overwritng possible) i cant move the file in gui.
So
Problem #1
Overwriting and keeping single/best copy of the media.(note that the best release probably will be downloaded latest and the file extensions can be diffirent)
Lets move on
Problem #2
I never used scripts so some one must enlighten me.When renaming using gui i can choose the show so will there be any windows popping to asking me.This may cause a problem in animes.
Final Structure will be
For Temp Download Folder
Temp
Animes
Series
Movies
Music
Cat Videos.
Media Folder will have the same structure before
Media
Series (has subfolders named after series name using tvdb)
Movies (has subfolders named after movies name and year)
Animes (Same as series)
Cat Videos
So each script will look for files in specific folder and move them to specific folders (like Anime>>Anime)
You must understand that i dont know how to write scripts at all
If someone can help me please I am at complete lost here.