Pavion / tvstreamrecord

Timed TV stream recording for Python
GNU General Public License v3.0
47 stars 10 forks source link

Internal Server Error #2

Closed NY152 closed 10 years ago

NY152 commented 10 years ago

Hello,

I use tvstreamrecord on my Synology NAS and I get an error 500 (Internal Server Error) when I try to import an m3u playlist in the channels menu.

On the Synology version where the playlist is stored on the NAS? This would allow me to inject the playlist manually until you correct the bug.

In advance, thank you

Pavion commented 10 years ago

Hello,

Which exception do you see in program log? What ist your m3u format? Please check my About page for proper format. Playlist should be saved in SQLite-Database, so no easy manual eject is possible. You could also try to manualy add your required channels on the Channel page. Please give your feedback if solved, otherwise feel free to ask again.

Pav

NY152 commented 10 years ago

Here is the log:

2013-12-27 11:49:34 p.m. OUT Starting tvstreamrecord v.0.5.6 2013-12-27 11:49:34 p.m. OUT output Logging initialized 2013-12-27 11:49:34 p.m. OUT Initializing database ... 2013-12-27 11:49:34 p.m. OUT exception : select * from config 2013-12-27 11:49:34 p.m. OUT Initializing config ... 2013-12-27 11:49:35 p.m. OUT Initializing records ... 2013-12-27 11:49:35 p.m. OUT Initializing EPG grab thread ... 2013-12-27 11:49:35 p.m. OUT Starting server on: 0.0.0.0:8030 2013-12-27 11:56:30 p.m. OUT M3U upload parsing started 2013-12-27 11:56:31 p.m. ERR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range 2013-12-27 11:57:19 p.m. OUT M3U upload parsing started 2013-12-27 11:57:19 p.m. ERR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range 2013-12-28 0:00:24 OUT M3U upload parsing started 2013-12-28 0:00:24 ERROR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range 2013-12-28 0:02:00 OUT M3U upload parsing started 2013-12-28 0:02:00 ERROR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range 2013-12-28 0:04:33 OUT M3U upload parsing started 2013-12-28 0:04:33 ERROR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range 2013-12-28 0:24:02 OUT Starting tvstreamrecord v.0.5.6 2013-12-28 0:24:02 OUT output Logging initialized 2013-12-28 0:24:02 OUT Initializing database ... 2013-12-28 0:24:02 OUT Initializing config ... 2013-12-28 0:24:02 OUT Initializing records ... 2013-12-28 0:24:02 OUT Initializing EPG grab thread ... 2013-12-28 0:24:02 OUT Starting server on: 0.0.0.0:8030 2013-12-28 0:33:50 OUT M3U upload parsing started 2013-12-28 0:33:50 ERROR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range 2013-12-28 0:35:24 OUT tvstreamrecord v.0.5.6 / XMLTV import started 2013-12-28 0:35:24 XMLTV OUT : reading URL http://xmltvfree.free.fr/xmltv.xml.gz 2013-12-28 0:35:28 ERR Exception in thread Thread- 12: Traceback ( most recent call last ): File "/ usr/local/lib/python2.7/threading.py " , line 551, in bootstrap_inner self . run () File " tvstreamrecord.py " , line 420, in run xmltv.getProgList (version ) File " / volume1 / @ appstore / tvstreamrecord / xmltv.py " , line 39, in getProgList url = dict_el.find (' base -url ') textAttributeError . ' NoneType 'object Has No attribute ' text ' 2013-12-28 0:35:47 OUT EPG import already running , please be patient 2013-12-28 0:35:54 OUT EPG import already running , please be patient 2013-12-28 0:36:10 OUT EPG import already running , please be patient 2013-12-28 0:53:53 OUT M3U upload parsing started 2013-12-28 0:53:53 ERROR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range 2013-12-28 1:02:26 OUT Starting tvstreamrecord v.0.5.6 2013-12-28 1:02:26 OUT output Logging initialized 2013-12-28 1:02:26 OUT Initializing database ... 2013-12-28 1:02:26 OUT Initializing config ... 2013-12-28 1:02:31 OUT Initializing records ... 2013-12-28 1:02:31 OUT Initializing EPG grab thread ... 2013-12-28 1:02:31 OUT Starting server on: 0.0.0.0:8030 2013-12-28 1:03:18 OUT tvstreamrecord v.0.5.6 / XMLTV import started 2013-12-28 1:03:19 OUT XMLTV : reading URL http://xmltvfree.free.fr/xmltv.xml.gz 2013-12-28 1:03:22 ERR Exception in thread Thread- 12: Traceback ( most recent call last ): File "/ usr/local/lib/python2.7/threading.py " , line 551, in bootstrap_inner self . run () File " tvstreamrecord.py " , line 420, in run xmltv.getProgList (version ) File " / volume1 / @ appstore / tvstreamrecord / xmltv.py " , line 39, in getProgList url = dict_el.find (' base -url ') textAttributeError . ' NoneType 'object Has No attribute ' text ' 2013-12-28 1:25:37 OUT M3U upload parsing started 2013-12-28 1:25:37 ERROR Traceback ( most recent call last ): File "/ volume1 / @ appstore / tvstreamrecord / bottle.py " , line 861, in return _handle route.call (* args) File " / volume1 / @ appstore / tvstreamrecord / bottle.py " , line 1755 , in wrapper rv = callback ( * a, * ka ) File" tvstreamrecord.py " , line 258, in upload_p name = line.split (", " , 1) [ 1] IndexError : list index out of range

My playlist is a playlist of ISP (included in attachment) , thank you to tell me if it can be problematic.

Le 28/12/2013 01:28, Pavion a écrit :

Hello,

Which exception do you see in program log? What ist your m3u format? Please check my About page for proper format. Playlist should be saved in SQLite-Database, so no easy manual eject is possible. You could also try to manualy add your required channels on the Channel page. Please give your feedback if solved, otherwise feel free to ask again.


GreGoRy

Pavion commented 10 years ago

Hello

It seems that GitHub doesn't support attaching files via E-Mail, so your attachment wasn't transmitted. As .m3u is a text file, please post some first entries here. As example, my provider's m3u has following format:


EXTM3U

EXTINF:0,Channel1

http://192.168.0.33/stream/tunerequest00040000C0FFFFFF00B49A60044D00FF00016DCA010101FF

EXTINF:0,Das Erste HD

http://192.168.0.33/stream/tunerequest00040000C0FFFFFF00AF5E8803FB00FF0001283D020301FF


I can still see an other issue in you log: you are trying to use your local XMLTV provider, which is also using a slightly other system as I've implemented. Meanwhile I'll take a look at it. Please note, that if your provider's streams are carrying EPG data, the most convenient method would be using integrated EPG grab feature.

MfG Pav

Pavion commented 10 years ago

P.S. I see now, that your XMLTV provider is not active anymore (last entry from 2006), so you can't use it anyway.

NY152 commented 10 years ago

For xmltv, this could be normal (they are the type to limit any if not part of their cliets)

For m3u, here are links to retrieve

1 (Official) - http://mafreebox.freebox.fr/freeboxtv/playlist.m3u 2 (Official) - http://212.27.40.238/pub/playlist.m3u 3 (Personal Storage) - http://dfiles.eu/files/bypzkatn3

Hoping that this will help you :)

GreGoRy

Pavion commented 10 years ago

No way it can be normal, if their data is from 2006... see their own timestamp: http://xmltvfree.free.fr/timestamp.txt they seems to be inactive...

The first two links are private only, the last one I was able to open. I see the problem and the new version is coming.

As I can see, you will be using RTSP streams. If you get problems with your records being empty, please consult the corresponding section on the About page for more info or ask me for more info.

Pavion commented 10 years ago

Please try my latest release https://github.com/Pavion/tvstreamrecord/releases/latest you can install it manually through your package center. Your supplied m3u file produces no error anymore.

NY152 commented 10 years ago

I found another source for xmltv, it should go right? http://homeplayer.free.fr/playlist/freeboxtv.xml

By cons I see no difference (nothing is displayed)

As for the dedicated page about RTSP section, it does not exist on my NAS (Synology DS412 version 0.5.6 +)

To install the spk file, I do not know how they do it because to install the version I have, I use a Depot :)

Le 28/12/2013 13:58, Pavion a écrit :

Please try my latest release https://github.com/Pavion/tvstreamrecord/releases/latest you can install it manually through your package center. Your supplied m3u file produces no error anymore.

— Reply to this email directly or view it on GitHub https://github.com/Pavion/tvstreamrecord/issues/2#issuecomment-31296141.


GreGoRy

NY152 commented 10 years ago

I do not know how it installs a version SPK package. Indeed, the version I have now (v0.5.6) is in a deposit and everything is done automatically. The manual installation does not work for 0.5.6a package (error: Failed loading file Check your network connection.). As my network connection works perfectly, I wonder ... Can we install manually via SSH?

Pavion commented 10 years ago

Deposited package 0.5.6 is still the old version as I didn't release it yet (takes its time too).

I've tried that again just now and it works. Where would you get your error? Anyway I wouldn't do that kind of stuff over SSH.

NY152 commented 10 years ago

In doing so I get the error above message.

As soon as I confirm the error appears and the installation does not start.

Pavion commented 10 years ago

Dunno... It shouldn't be so and it may be a rights problem on DSM.


If you're an advanced DSM user, you can update the package manually via SSH:


you can also wait till this version is approved by the community and is officially released.


In any case I would ask you to try to add one of your channels manual, to check if it works at all. I have already encountered several issues regarding RTSP (see https://github.com/Pavion/tvstreamrecord/wiki section 7 for details)


I've also taken a look at your new XMLTV source (http://homeplayer.free.fr/playlist/freeboxtv.xml) and it looks more like a simple playlist with no EPG data supplied.

NY152 commented 10 years ago

thank you :)

For the playlist it works after replacing tvstreamrecord.py

I do not have to find out why I have no EPG data and it will be good :)

Again thank you ^ ^