ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 Ruttus, great job. Cayars, fixed the streamclassses script for us. I already updated it in the folder. There is no longer an error with special characters within the move or series name. Just follow the instructions after 5 and finish setting up on automation. IDM has a 30 day trial for you to work with, if you need a download manager. Once on automation, it's completely hands free. You will love it. 1
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 Unfortunately not. I wont be back home for another 7 hrs (at work) and don't have limited access to my server away from home, but if you have any suggestions, please post, and I will try and see if I can do them in the next 7 hours, if not when I get home
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 gillmacca01, Do you have everything in the same folder? The downloaded m3u and python script need to be inside the same folder. Movies.m3u need to be inside the folder with with the script once you run cmd, and type in "python movies.py". When you saved main.py as movies, make sure you used the "save as" after changing the last line in main.py. Check movies.py file type to ensure it's extension is py. If all of that is correct, then the only other variable is your Q server. I have a server as well, but I don't keep my strm files on the server since they don't take up much room. I keep them on a local SSD. This doesn't improve anything with playback, but when I was using erdesign downloader, this downloaded and integrated the updates much faster. I only keep my owned movies on my server. I direct emby to both paths accordingly. If you can't get issue resolved by this afternoon, I'll try duplicating your issue on my server and see if there's a communication issue between the pc processing and communicating and storing the files back on the server. If the issue is in the communication, I would suggest moving your strm files outside of the server and direct emby to the external server folder.
Ruttus 3 Posted July 15, 2021 Author Posted July 15, 2021 42 minutes ago, ghaugabrook said: Ruttus, great job. Cayars, fixed the streamclassses script for us. I already updated it in the folder. There is no longer an error with special characters within the move or series name. Just follow the instructions after 5 and finish setting up on automation. IDM has a 30 day trial for you to work with, if you need a download manager. Once on automation, it's completely hands free. You will love it. Thanks I will check it out in a few.
Ruttus 3 Posted July 15, 2021 Author Posted July 15, 2021 44 minutes ago, ghaugabrook said: Ruttus, great job. Cayars, fixed the streamclassses script for us. I already updated it in the folder. There is no longer an error with special characters within the move or series name. Just follow the instructions after 5 and finish setting up on automation. IDM has a 30 day trial for you to work with, if you need a download manager. Once on automation, it's completely hands free. You will love it. Is there a way to use the links from the provider rather than downloading the files?
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 (edited) I keep getting an error with wget when I use the url. As I stated earlier, I'm only about a month into working and understanding python. I'm not a programmer. I was able to figure out the converter best by # out the url side and just working with the downloaded m3u. I do plan on working on wget more, but have not had the time to completely figure out why I'm getting an error. I didn't ask Cayars about it yet, because I'm trying to learn and figure it out myself, but if that may help him faster, we can ask him about the url side of the python script. I do believe it will require more specific settings. 7 minutes ago, Ruttus said: Is there a way to use the links from the provider rather than downloading the files? Edited July 15, 2021 by ghaugabrook 1
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 23 minutes ago, ghaugabrook said: gillmacca01, Do you have everything in the same folder? The downloaded m3u and python script need to be inside the same folder. Movies.m3u need to be inside the folder with with the script once you run cmd, and type in "python movies.py". When you saved main.py as movies, make sure you used the "save as" after changing the last line in main.py. Check movies.py file type to ensure it's extension is py. If all of that is correct, then the only other variable is your Q server. I have a server as well, but I don't keep my strm files on the server since they don't take up much room. I keep them on a local SSD. This doesn't improve anything with playback, but when I was using erdesign downloader, this downloaded and integrated the updates much faster. I only keep my owned movies on my server. I direct emby to both paths accordingly. If you can't get issue resolved by this afternoon, I'll try duplicating your issue on my server and see if there's a communication issue between the pc processing and communicating and storing the files back on the server. If the issue is in the communication, I would suggest moving your strm files outside of the server and direct emby to the external server folder. Did I miss a step or misunderstood? Don't recall seeing in the guide about saving main.py as movies.py - this would explain why the guide says enter 'python movies.py'. I just edited the main.py file and saved it as main.py. To double check - the main.py file should be left as is, but the last line should be edited with the m3u name and saved as movies.py
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 (edited) Exactly, you need to create a .py file for each of your m3u files. That is why I said go into main.py and edit that last line and then save as for each of the m3u files. Once that is complete, and all the the m3u files and .py files are in the same folder; you can run the cmd from that folder and by typing in "python (file).py". Once you get to the automated part, you'll need all of these files as well, for windows scheduler. Edited July 15, 2021 by ghaugabrook
Ruttus 3 Posted July 15, 2021 Author Posted July 15, 2021 1 hour ago, ghaugabrook said: I keep getting an error with wget when I use the url. As I stated earlier, I'm only about a month into working and understanding python. I'm not a programmer. I was able to figure out the converter best by # out the url side and just working with the downloaded m3u. I do plan on working on wget more, but have not had the time to completely figure out why I'm getting an error. I didn't ask Cayars about it yet, because I'm trying to learn and figure it out myself, but if that may help him faster, we can ask him about the url side of the python script. I do believe it will require more specific settings. ok maybe on the weekend i will have time to fool around and see if i can figure out something 1
Carlo 4560 Posted July 15, 2021 Posted July 15, 2021 6 hours ago, ghaugabrook said: I keep getting an error with wget when I use the url. As I stated earlier, I'm only about a month into working and understanding python. I'm not a programmer. I was able to figure out the converter best by # out the url side and just working with the downloaded m3u. I do plan on working on wget more, but have not had the time to completely figure out why I'm getting an error. I didn't ask Cayars about it yet, because I'm trying to learn and figure it out myself, but if that may help him faster, we can ask him about the url side of the python script. I do believe it will require more specific settings. Yes you can pull down the URL vs uses a static copy which is what I would do so you always have the most current version but if I remember correctly you need to empty the m3u folder after each run as it doesn't overwrite the file. It could be just as easy to keep it with the static file but run a curl command first to download the latest m3u file. To change this you would edit the main.py or movie.py file which should have directions for editing right in the file.
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 Still getting error message. Here is a screenshot of putty, folder directory, and movies.py
Ruttus 3 Posted July 15, 2021 Author Posted July 15, 2021 21 minutes ago, cayars said: Yes you can pull down the URL vs uses a static copy which is what I would do so you always have the most current version but if I remember correctly you need to empty the m3u folder after each run as it doesn't overwrite the file. It could be just as easy to keep it with the static file but run a curl command first to download the latest m3u file. To change this you would edit the main.py or movie.py file which should have directions for editing right in the file. where in the line of coding in the main.py would you put the link from the providor for it to run? i dont mind if i have to empty the folder each time
Carlo 4560 Posted July 15, 2021 Posted July 15, 2021 10 minutes ago, Ruttus said: where in the line of coding in the main.py would you put the link from the providor for it to run? i dont mind if i have to empty the folder each time Look at the post right above yours where you can see the contents of the movies.py file. Just uncomment the top part and fill in the proper info and comment the bottom part.
Carlo 4560 Posted July 15, 2021 Posted July 15, 2021 13 minutes ago, gillmacca01 said: Still getting error message. Here is a screenshot of putty, folder directory, and movies.py I'm not seeing any internal folders in your install. If I were you I'd start over following the directions given.
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 Sorry, what do you mean by internal folders? If you mean a movie and tv show folder in that directory, I though this script created them, anyway, i created a movies folder, ran the script again, but same error
Ruttus 3 Posted July 15, 2021 Author Posted July 15, 2021 2 minutes ago, cayars said: Look at the post right above yours where you can see the contents of the movies.py file. Just uncomment the top part and fill in the proper info and comment the bottom part. i tried this: print (wget.download(iptmovieurl, ('https://site/api/list/email/pass/m3u8/movies'))) but this ipttvurl = 'https://tv123.me/m3u.php' #replace url with your link, i dont have a m3u.php ending my link
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 (edited) I have tried every way possible to duplicate your syntax error and I can't get one. A syntax error means there is an invalid character somewhere, kind of like I was saying regarding the #Black and #Alive; but we resolved that issue already. I see in the image you posted you have two tools files. Delete the tools.pyc. I'm not sure if that file has something in it that could be causing the issue. keep the tools.py file. Also, open you movies.m3u file and send a screen shot of the first 10 lines. Delete your email and password and leave the rest. Also, does your email or password have any special characters in them? Edited July 15, 2021 by ghaugabrook
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 Before I do anything, do you want me to PM my m3u to see if you get the error?
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 (edited) Yes, let me take a look at it. Give me about an hour. I have one hour to go at work and I need to finish some stuff before I log out. Edited July 15, 2021 by ghaugabrook
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 3 minutes ago, ghaugabrook said: Yes, let me take a look at it. Give me about an hour. I have one hour to go at work and I need to finish some stuff before I log out. PM sent
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 (edited) I ran my movies in a new folder, and I forgot how long it takes to parse 6000+ movies. Edited July 15, 2021 by ghaugabrook
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 Ok thanks for looking. Will take another stab at it tomorrow
gillmacca01 211 Posted July 15, 2021 Posted July 15, 2021 Quick question before I go to bed. Putty is being run from my windows laptop. Do I need python installed on my laptop, or is the one on my qnap being used?
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 If you want I would like to take a look at it, via zoom in about 35 minutes.
ghaugabrook 17 Posted July 15, 2021 Posted July 15, 2021 (edited) I would install it on the laptop. Your Q, is not processing this part. Your laptop is. See if that works and let me know before you go to bed. Edited July 15, 2021 by ghaugabrook
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