Jump to content

Help with strm file converter


Recommended Posts

Posted

Hey guys i need some help, i have a iptv provider that i get my m3u ling from to stream, but for the movies and series i made them as movie and series in emby and cover the m3u link to individual files and folder for the series and movies, i used this site over a year now https://erdesigns.eu/app/tools/m3u-to-strm , but it has been not working for a month or more now, and i can find another alternative that works so can anyone help me get an alternative that maybe works the same or better or some good solution to convert m3u to strm files.

Posted

Hi, what does not working mean?

Posted
3 hours ago, Ruttus said:

Hey guys i need some help, i have a iptv provider that i get my m3u ling from to stream, but for the movies and series i made them as movie and series in emby and cover the m3u link to individual files and folder for the series and movies, i used this site over a year now https://erdesigns.eu/app/tools/m3u-to-strm , but it has been not working for a month or more now, and i can find another alternative that works so can anyone help me get an alternative that maybe works the same or better or some good solution to convert m3u to strm files.

Check out this thread which is exactly what you're looking for.

 

Posted
On 10/07/2021 at 09:57, Luke said:

Hi, what does not working mean?

hey luke meaning the site stop converting the links for me, so i need another solution.

Posted
On 10/07/2021 at 11:43, cayars said:

Check out this thread which is exactly what you're looking for.

 

yeh this would be what i want, but im not good with github stuff or have an idea how to work this, i tried for days and got as far as it mad folders but empty, think i emailed the creater for help too but been stuck been over a month, so if you can help me out i would greatly appreciate it.

Posted

I would follow that thread for help on the python setup and script.

Ask any questions about it there.

ghaugabrook
Posted (edited)
On 7/10/2021 at 7:54 AM, Ruttus said:

Hey guys i need some help, i have a iptv provider that i get my m3u ling from to stream, but for the movies and series i made them as movie and series in emby and cover the m3u link to individual files and folder for the series and movies, i used this site over a year now https://erdesigns.eu/app/tools/m3u-to-strm , but it has been not working for a month or more now, and i can find another alternative that works so can anyone help me get an alternative that maybe works the same or better or some good solution to convert m3u to strm files.

Hi Ruttus, I had been using erdsigns for the past few years also, until the downloader stop functioning. Also, like suggested I found the github m3u2strm converter. I had no knowledge of python when I started this process and through watching many youtube videos on learning from the free modules on this link (Free Online Tutorials and Courses (tutorialspoint.com) It took me several weeks to get to a point of understanding and able to use the m3u2strm python script. The script is very simple to use, but the instructions provided by the creator is pure garbage! An idiot could have explained how to use this script better than this guy did and I hope he reads this message or someone forwards it to him. Ruttus, if you need help with the script, pst me and I'll have you up and running in 5 minutes. Once I show you, you'll be able to replicate the process as needed. Using the script is better than using erdesigns site. I have setup the script  to use with windows scheduling and now my m3u parse at midnight and I no longer have to do anything. Well, I'm 99% there. I'm having one issue that I'm about to post help for, regarding automated parsing of one my my series m3u with "#Black" tv show. "#" in python means to comment out, so when the parse gets to this line, it stops the process on this m3u. For this m3u I have to edit the show "#Black" to just "Black" and rerun the script. I'm seeking an alternative to ignore "#Black". I'll post a new thread for this issue, but let me know if you need help with the python script. Once I get the # issue resolved, I'll also post complete instructions on Emby for anyone else who wants to use the script and also setup script to run automatically at a set time. 

 

Edited by ghaugabrook
  • Like 2
gillmacca01
Posted

Looking forward to seeing your instructions.

I'm in pretty much the same situation. Trying to run it on my QNAP, but don't even know where to start

ghaugabrook
Posted

I just posted a tutorial on the process I'm using. 

gillmacca01
Posted

Thanks for this. Might be a few days before I have time to go through it

gillmacca01
Posted

Reading though it, it looks simple enough. 

Only difference for me is that I will be running it on a QNAP, but luckily it has a thing called 'virtualization station' which allows you to load other OS's in, so I can load up windows, set it up via your doc, but still have it running on my NAS

Posted

You should be able to install and run python directly without the need for a VM.  Python runs on just about every OS.

gillmacca01
Posted

Yes, but I don't really know how to run python scripts natively, as  well as scheduling download and processing of the m3u file

gillmacca01
Posted

Managed to get to a certain point, but getting errors - I presume I have done things right.

I have created a folder on my NAS and placed all the m3u2strm files in it, manually downloaded the m3u for movies and placed it in the same folder.

Changed in main.py, the last line to this: apollomovies = streamClasses.rawStreamList('movies.m3u'). m3u file in folder is called movies.m3u

Ran putty, navigated to the folder, and entered the following: python movies.m3u.

I then get the following error:

  File "movies.m3u", line 3
    https://tv4.live/api/stream/email address/password/movie/tt6654210 

         ^
SyntaxError: invalid syntax
 

(does contain my email address and password, but changed here)

The movies.m3u looks like this (edited out email address and password):

#EXTINF:-1 tvg-id="tt6654210" tvg-name="tt6654210" tvg-type="movies" group-title="Movies 2021" ,Infinite (2021)
https://tv4.live/api/stream/email address/password/movie/tt6654210 

Posted

Did you look at the m3u to see if that particular set of lines looks different than other sets of lines?

Being this error is on line 3 it looks like it's got a problem right away with the first entry.  For testing purposes you could try removing these 2 lines so it's starts with the next movie.

If you do that do you still get an error on line 3?

gillmacca01
Posted

All lines are in the same format.

I removed the first entry, re ran, but it just failed on the 1 first entry again

gillmacca01
Posted

Yes. I included the changes I made, in a previous post.

Only difference I made to the script was it mentioned entering 'python movies.py'  but there isn't a movies.py, so changed it to movies.m3u

Posted (edited)

That would seem to be 2 different things. Sounds like it's looking for code but you gave it a playlist instead.

Try following the instructions provided with the link above.

Edited by cayars
gillmacca01
Posted (edited)

Changed it back to movies.py and get the following error:

[/share/Public/VOD/m3u2strm-nextgen] # python movies.py
python: can't open file 'movies.py': [Errno 2] No such file or directory
 

Here is the directory:

[/share/Public/VOD/m3u2strm-nextgen] # ls -a
./          README.md         tvshows (13).m3u  tvshows (7).m3u
../         streamClasses.py  tvshows (1).m3u   tvshows (8).m3u
.gitignore  test.m3u          tvshows (2).m3u   tvshows (9).m3u
LICENSE     tools.py          tvshows (3).m3u   tvshows.m3u
logger.py   tvshows (10).m3u  tvshows (4).m3u
main.py     tvshows (11).m3u  tvshows (5).m3u
movies.m3u  tvshows (12).m3u  tvshows (6).m3u

 

This is my main.py:

import tools
import logger
import streamClasses
#import wget
import sys

# ipttvurl = 'https://tv123.me/m3u.php' #replace url with your link, or comment this line out and put the filename in the streamlist below.
#'''for i in range(20):
#  url = baseurl + str(i)
#  print(wget.download(url, ('m3u/apollotvshows-'+str(i)+'.m3u')))
#  apollolist = streamClasses.rawStreamList('m3u/apollotvshows-'+str(i)+'.m3u')'''

# print(wget.download(iptmovieurl, ('m3u/iptmovies.m3u'))) #if not downloading comment out this line.
apollomovies = streamClasses.rawStreamList('movies.m3u')

Edited by gillmacca01
Posted

Since you don't have a movies.py but instead have main.py have you tried:

python main.py

gillmacca01
Posted

now getting this error:

[/share/Public/VOD/m3u2strm-nextgen] # python main.py
Traceback (most recent call last):
  File "main.py", line 2, in <module>
    import logger
  File "/share/CACHEDEV5_DATA/Public/VOD/m3u2strm-nextgen/logger.py", line 46
    msg = f'{log_level.name}: {msg}'
                                   ^
SyntaxError: invalid syntax
 

Posted
On 12/07/2021 at 07:32, ghaugabrook said:

Hi Ruttus, I had been using erdsigns for the past few years also, until the downloader stop functioning. Also, like suggested I found the github m3u2strm converter. I had no knowledge of python when I started this process and through watching many youtube videos on learning from the free modules on this link (Free Online Tutorials and Courses (tutorialspoint.com) It took me several weeks to get to a point of understanding and able to use the m3u2strm python script. The script is very simple to use, but the instructions provided by the creator is pure garbage! An idiot could have explained how to use this script better than this guy did and I hope he reads this message or someone forwards it to him. Ruttus, if you need help with the script, pst me and I'll have you up and running in 5 minutes. Once I show you, you'll be able to replicate the process as needed. Using the script is better than using erdesigns site. I have setup the script  to use with windows scheduling and now my m3u parse at midnight and I no longer have to do anything. Well, I'm 99% there. I'm having one issue that I'm about to post help for, regarding automated parsing of one my my series m3u with "#Black" tv show. "#" in python means to comment out, so when the parse gets to this line, it stops the process on this m3u. For this m3u I have to edit the show "#Black" to just "Black" and rerun the script. I'm seeking an alternative to ignore "#Black". I'll post a new thread for this issue, but let me know if you need help with the python script. Once I get the # issue resolved, I'll also post complete instructions on Emby for anyone else who wants to use the script and also setup script to run automatically at a set time. 

 

i must say thank you again, i stopped at step 5 and do things manually than go further seems too complicated after that, yes stopping at 5 will eventually be more work but it works out to the way i was doing before from erdesign but faster so im satisfied and greatful beacuse now i can watch updaed episodes from my provider been a month or more now so thank you again for the help, when the other steps are simpler and without bugs i will try it, or maybe when my job gives me time to try the other steps.

 

AGAIN THANK YOU

ghaugabrook
Posted

gillmacca01, were you able to resolve your issue? If not, I'll be available later this afternoon. 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...