MartinCheetham 8 Posted 2 hours ago Posted 2 hours ago This is a long running thread but I thought I would add my contribution. I used rbjtech's (thank you; great idea and script) original script to build my multi-language files but found similar shortcomings to those pointed out by Dibbes. I also realised that language diacritic characters broke the script. Also I had a couple of files with "!" in the name. These got dropped from the files created so broke the .strm file. I am running windows and linux servers so I also wanted something which would map windows paths to equivalent linux paths. The attached bat file and sample input file does all this. It will take anything in the file path and preserve it, create output libraries, copy .nfo, .jpg, .mp3 (for themes), .srt, .sub etc. to the destination then create .strm files in windows or linux format. Originally I was trying to create .strm files which would work on both Windows and Linux servers but I could not get the the URL to work on both platforms (I'm sure there is a way if anyone has any ideas). The point of copying .jpg files is that I only keep .jpg files in my source library where the scrappers have not found images. If they are not found in English the chances are they also don't exist in foreign language although there maybe odd cases where this is not true. Using a bat script is not ideal so I'm working on a python version which should work on both platforms. Create_Language_libraries.bat config_file2.txt
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now