Giter Club home page Giter Club logo

smoothstreamstv-playlist's Introduction

SmoothStreamsTV-playlist

Build Status

Generate a M3U8 playlist (for VLC, MPC, MPlayer, etc.) for SmoothStreamsTV from your command line.

Requirements

I've made an effort to use only built-in Python modules, but please let me know if your system requires any extra items installed to make this work.

Instructions

  1. Download this repository.

  2. Unzip the zip file.

  3. Open the folder.

  4. Run the script with Python 3: python3 ./sstv-playlist.py

Result

The m3u8 playlist file will be created in the directory that the script is called from.

For example, if you are in your home directory,

$ cd ~

and call the script in your ~/Scripts directory,

$ python3 ~/Scripts/sstv-playlist.py

the script will be created in your home directory.

$ ls ~

  SmoothStreamsTV.m3u8

Note: the SmoothStreams server provides an access token that is valid for only 240 minutes (4 hours) so this script will need to be run every 4 hours if used in some kind of server configuration.

Testing

Tested on:

  • Mac OS X 10.11
  • macOS 10.12
  • Ubuntu 14.04.5 LTS
  • Ubuntu 16.04.1 LTS
  • Windows 10

Notable Forks

Some people have built some cool stuff off of this script. Here are a couple that I know of:

Feedback

If you have any issues with the program, please be sure to open an Issue on GitHub, so that it can be tracked and addressed formally.

A few people have sent me emails, and while I really appreciate the feedback, emails can get lost or buried. GitHub Issues will stick with the project, and are the best way to ensure that the issue is resolved.

Thank you to everyone who has given me feedback on this project! Please Star or Watch the repo to stay updated.

smoothstreamstv-playlist's People

Contributors

stvhwrd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

smoothstreamstv-playlist's Issues

Unused Channels Crash Client

Kodi PVR IPTV Simple Client - Clicking on an unused channel in the EPG causes Kodi to crash requiring a force stop. All other channels work just fine. How would I go about modifying the script so that playlist information is not added for unused channels? And is it possible to not add channel numbers so that I can use an xmltv file to automatically populate guide data?

Use a separate user config/credentials file

This file should be generated on first run.

If no configuration file exists,

  • "Would you like to save your credentials to a local file?"

If "yes", save this preference and all following credentials. If "no", save this preference and don't ask again.

Mysteams.tv user credentials do not work

I updated the python script with my Mystreams username/password and the script fails saying the credentials are invalid. I've tried setting the username with and without the full email address and I get the same behavior each time. Screenshot attached.

sstv-playlist error

Update server list

SmoothStreams have updated their servers as follows:

deu-nl1: "EU NL1 (Ams)",
deu-nl2: "EU NL2 (Ams)",
deu-nl3: "EU NL3 (Ams)",
deu-uk1: "EU UK1 (io)",
deu-uk2: "EU UK2 (100TB)",
deu-nl:  "European NL Mix",
dEU:     "European Server Mix",
deu-uk:  "European UK Mix",
dNAe1:   "US/CA East 1 (NJ)",
dNAe2:   "US/CA East 2 (VA)",
dNAe3:   "US/CA East 3 (MTL)",
dNAe4:   "US/CA East 4 (TOR)",
dNAe:    "US/CA East Mix",
dNA:     "US/CA Server Mix",
dNAw1:   "US/CA West 1 (PHX,AZ)",
dNAw2:   "US/CA West 2 (SJ,CA)",
dNAw:    "US/CA West Mix",
dAP :    "Asia Mix"

API change

API URL structure has changed to:
http://auth.smoothstreams.tv/hash_api.php?site=VHOST&username=USERNAME&password=PASSWORD

where VHOST = {Live247: view247, MyStreams = viewms, StarStreams = viewss, StreamTVnow = viewstvn}

All SmoothStreams services not supported

Hi!

Im getting wrong login credentials every time i try to generate the file. Is the py file able to "log-in" on every SS site? My guessing is that the script is not signing me in in the right site. I use live247.

Also, if i edit the py file to add my credentials it gives me syntax error. I just put my user and pass inside the ''

Thanks for the effort you putting on it.

Windows 10 - Python 2.7

Windows 10 / Python 2.7 - all goes well until it attempts to generate the playlist.

Thank you, generating playlist.
[0m
Traceback (most recent call last):
File "./sstv-playlist.py", line 334, in
main()
File "./sstv-playlist.py", line 74, in main playlistFile = buildPlaylistFile(playlistText)
File "./sstv-playlist.py", line 141, in buildPlaylistFile call(['touch', title])
File "C:\Python27\lib\subprocess.py", line 523, in call return Popen(popenargs, *kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 711, in init errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 959, in _execute_child startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Need some help

screenshot_20180930-183130_video player
Hi could you help me with this please not sure what I've done wrong thanks

Porting for starstreams

hey so i tried to port this over for starstreams but failed miserably and i'm getting this error:

python sstv.py

WELCOME to the SmoothStreamsTV playlist generator!

This program will generate an .m3u8 playlist file with all available channels for the SmoothStreamsTV IPTV provider, playable in media players and browsers.
Please note: channel names and listings are sourced from SmoothStreamsTV, and current as of September 5, 2016.

1. Please ensure that you are signed into SmoothStreamsTV, and go to this page:

        http://streamtvnow.tv/players/web_auth_old/index.php

2. Click on the VLC traffic cone icon and copy the URL from the 'HLS' box to your clipboard.

    Example:
        http://dnaw1.smoothstreams.tv:9100/viewstvn/ch19.smil/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9O...

3. Paste the full URL here (and press return):


http://dn2.smoothstreams.tv/viewss/ch11q1.stream/playlist.m3u8?wmsAuthSign=--AUTHKEY HERE--
An exception of type NameError occured. Arguments:
("global name 'ex' is not defined",)

can you shed some light on what could be causing this?

Incorporate Fog's data for Android TV Live Channels integration

Would it be possible to add Fog's data as a data source and generate a m3u8 files passed on it?

I'm trying to integrate SmoothStreams TV into my Android TV box (Nvidia Shield) Live Channels app. I have found an app, TVirl (https://play.google.com/store/apps/details?id=by.stari4ek.tvirl&hl=en), which takes an m3u8 file and an XMLTV file for EPG data and puts it into the Live Channels app. Fog has released the URLs for his data (see below). This would allow me to run the script locally and generate the necessary m3u8 and XMLTV files for the TVirl app and have that integrated into the Live Channels app.

Is this at all possible?

Thanks in advance.

Add support for extended information tags in playlist file

Hi,

Would it be possible for you to insert a dictionary table into the code for '#EXTINF:-1,' as well? And then the user can edit the table with the matching tvg-id tags. This would allow the script to output a working epg format for iptv simple client. For example the working epg output would need to look as follows:

#EXTINF:-1 tvg-id="I16485.labs.zap2it.com", 01 ESPNews
#EXTINF:-1 tvg-id="I10179.labs.zap2it.com", 02 ESPN

(Where as the table allows for me to insert my tvg-id tags right before the comma of #EXTINF:-1,)

Thanks in advance if possible!

HTTP Error 403: Forbidden

Keep getting the following error message, tried it via both Windows & Linux Server - "An exception occurred: HTTP Error 403: Forbidden."

Double checked credentials etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.