primaeval / plugin.video.iptv.recorder

GNU General Public License v3.0
43 stars 29 forks source link

OperationalError: no such column: tvg_name #46

Open dufourgilles opened 3 years ago

dufourgilles commented 3 years ago

Crash when trying to record a channel

2020-12-27 20:45:59.078 T:123145343946752 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

Indeed the schema does not match the code

sqlite> .schema channels CREATE TABLE channels(uid INTEGER PRIMARY KEY ASC, id TEXT, name TEXT, icon TEXT); sqlite>

channel = cursor.execute("SELECT * FROM streams WHERE name=?", (channelname,)).fetchone()
if not channel:
    channel = cursor.execute("SELECT * FROM channels WHERE tvg_name=?", (channelname, )).fetchone()
    uid, tvg_id, name, tvg_logo = channel
    url = ""
else:
    uid,
Martin-Stangl commented 2 years ago

Encountered the same problem on Windows 10:

`ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

Martin-Stangl commented 2 years ago

I just found more details on the issue and a workaround posted by carloss at 2021-02-23, 19:26 on the Kodi forum: https://forum.kodi.tv/archive/index.php?thread-329991-83.html: