mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-23 03:33:24 +00:00
Updated README and a few other things.
This commit is contained in:
@@ -54,6 +54,8 @@ You can run `% python PseudoChannel.py` with the following options. The order is
|
|||||||
| -m, --make_html | Manually generate both html / xml docs based on the "Daily Schedule". |
|
| -m, --make_html | Manually generate both html / xml docs based on the "Daily Schedule". |
|
||||||
| -e, --export | Export the current queue of your "TV Shows" episodes. Useful when redoing your local DB. |
|
| -e, --export | Export the current queue of your "TV Shows" episodes. Useful when redoing your local DB. |
|
||||||
| -i, --import | Import the previously exported queue of your "TV Shows" episodes. |
|
| -i, --import | Import the previously exported queue of your "TV Shows" episodes. |
|
||||||
|
| -eds, --export_daily_schedule | Export the daily schedule. |
|
||||||
|
| -ids, --import_daily_schedule | Import the daily schedule. |
|
||||||
|
|
||||||
## `startstop.sh` - Alternative Way of Running the Application:
|
## `startstop.sh` - Alternative Way of Running the Application:
|
||||||
|
|
||||||
@@ -150,7 +152,7 @@ If for some reason you want to delete your old DB but don't want to lose your TV
|
|||||||
|
|
||||||
We set up [discord](https://discord.gg/7equn68) channel where you can ping Mark and I with any issues you may run into. You can find us there or file an "issue" here in this repo.
|
We set up [discord](https://discord.gg/7equn68) channel where you can ping Mark and I with any issues you may run into. You can find us there or file an "issue" here in this repo.
|
||||||
|
|
||||||
Stay tuned for a polished version / bug fixes. I've also started a user friendly web version that hopefully will be working soon.
|
Stay tuned for a polished version / bug fixes.
|
||||||
|
|
||||||
## Special Thanks
|
## Special Thanks
|
||||||
|
|
||||||
|
|||||||
@@ -328,9 +328,22 @@ class PseudoChannelDatabase():
|
|||||||
|
|
||||||
unix = int(time.time())
|
unix = int(time.time())
|
||||||
try:
|
try:
|
||||||
self.cursor.execute("REPLACE INTO shows "
|
self.cursor.execute('''REPLACE INTO shows
|
||||||
"(unix, mediaID, title, duration, lastEpisodeTitle, fullImageURL, plexMediaID) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
(unix,
|
||||||
(unix, mediaID, title, duration, lastEpisodeTitle, fullImageURL, plexMediaID))
|
mediaID,
|
||||||
|
title,
|
||||||
|
duration,
|
||||||
|
lastEpisodeTitle,
|
||||||
|
fullImageURL,
|
||||||
|
plexMediaID
|
||||||
|
) VALUES (?, ?, ?, ?, ?, ?, ?)''',
|
||||||
|
(unix,
|
||||||
|
mediaID,
|
||||||
|
title,
|
||||||
|
duration,
|
||||||
|
lastEpisodeTitle,
|
||||||
|
fullImageURL,
|
||||||
|
plexMediaID))
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
# Catch the exception
|
# Catch the exception
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user