Stearalkonium1 0 Posted May 14, 2022 Share Posted May 14, 2022 Is there a script to convert a text file with a bunch of links to individual .strm files? I really don't feel like copy and pasting one piece links a thousand times. Link to comment Share on other sites More sharing options...
Luke 37008 Posted May 14, 2022 Share Posted May 14, 2022 Hi, not that I've heard of. Link to comment Share on other sites More sharing options...
koopa8840 23 Posted May 15, 2022 Share Posted May 15, 2022 If you post the text file or an example of how the text file is setup, I or someone can create a script for you. Link to comment Share on other sites More sharing options...
Stearalkonium1 0 Posted May 16, 2022 Author Share Posted May 16, 2022 Something like this? Script Request.zip Link to comment Share on other sites More sharing options...
koopa8840 23 Posted May 16, 2022 Share Posted May 16, 2022 (edited) How do you create the list of the links? Is it done automatically or do you manually copy and paste each link into the text file? Reason I ask is you stated this: Quote Could add a section to add the series name to output as "One Piece - S01E01.strm" Could output the .strm files into there own seperate folder I have an AutoHotKey script, that is close to doing what you want, I just need to modify it. Edited May 16, 2022 by koopa8840 Link to comment Share on other sites More sharing options...
Stearalkonium1 0 Posted May 17, 2022 Author Share Posted May 17, 2022 Opendrive is where I'm storing my media and they automatically create the list of links for me. Otherwise I usually just do it manually. Link to comment Share on other sites More sharing options...
koopa8840 23 Posted May 19, 2022 Share Posted May 19, 2022 Sorry, it is taking me a bit. Dealing with a COVID-infected household. Anyways, I see you stated you are storing the media files on a cloud. Is it safe to assume the files are already named in the format you prefer (Title - S##E## )? If so, does the downloaded text file, of URLS, show the file names in it? I'm trying to gain all the information, so I can provide you with a script to do what you want. I'm assuming the list you provided is just an example and doesn't actually use YouTube URLs. As it is, if the provided list reflects what your actual Opendrive list shows, I wouldn't be able to create STRM file names how you would like. However, if the Opendrive list shows, for example: https://opendrive_domain.com/folder/folder/folder/Episode_Title - S##E##.ext, then I can certainly create STRM file names to reflect what you want. Does this make sense? Link to comment Share on other sites More sharing options...
koopa8840 23 Posted May 19, 2022 Share Posted May 19, 2022 (edited) Here's a basic script based off what you gave me. The file can be opened with a text editor, so you can see the code. It will name the STRM files as 01.strm, 02.strm, etc until I know more info. If you want, message me with an exact link from Opendrive and I can possibly expand on the script to do what you want/need. You'll need AutoHotKey, since it is what I know. Install it, and then you can run the script. AutoHotKey Download Edited May 23, 2022 by koopa8840 See last post for script Link to comment Share on other sites More sharing options...
Stearalkonium1 0 Posted May 20, 2022 Author Share Posted May 20, 2022 (edited) So a typical link looks like this: https://od.lk/s/MV8yNzk4OTczNTNf/Steven%20He%20-%20S01E01%20-%20Emotional%20Damage.mp4 I don't think it would be more complex to auto name it from the link, rather than have an area where I manually enter the series name and season inside the script. Edited May 20, 2022 by Stearalkonium1 Link to comment Share on other sites More sharing options...
Stearalkonium1 0 Posted May 20, 2022 Author Share Posted May 20, 2022 Actually nevermind I figured it out and edited line 40 to what I wanted. I really appreciate your help, literal hours of my life saved. Link to comment Share on other sites More sharing options...
koopa8840 23 Posted May 20, 2022 Share Posted May 20, 2022 (edited) See last post. Edited May 23, 2022 by koopa8840 Updated script Link to comment Share on other sites More sharing options...
koopa8840 23 Posted May 20, 2022 Share Posted May 20, 2022 (edited) I cleaned up the code and combined the 2 scripts. Edit the file to save STRM naming. You can also set the name of the output folder. Read the comments within the script. Let me know if you run across problems. If you do, provide the problematic link and I'll tweak as needed. TXT2STRM.ahk Edited May 23, 2022 by koopa8840 Updated script Link to comment Share on other sites More sharing options...
Stearalkonium1 0 Posted May 27, 2022 Author Share Posted May 27, 2022 Been using this for the last week. You're the best! Link to comment Share on other sites More sharing options...
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