Commit Graph

77 Commits

Author SHA1 Message Date
Justin Emter
4659f6bb11 Switched DB columns from integers to text. 2017-12-12 09:00:59 -08:00
Justin Emter
c613c58266 Fixed the html BG image and also fixed function name in controller from 'now_plating' to 'now_playing'. 2017-12-03 10:20:11 -08:00
Justin Emter
29fdf92cfa Applied fix for customSectionName = next_episode[9]
IndexError: tuple index out of range, error.
2017-12-03 09:35:13 -08:00
Justin Emter
91d20a2d5a Fixed play() err, custom-section-names should be working now. 2017-12-02 14:04:51 -08:00
Justin Emter
dc916c6ef0 Added functionality to use custom Library names (i.e. 'Movies' : ['Films']) - Hasn't been thoroughly tested 2017-12-02 12:31:54 -08:00
Justin Emter
1127843486 Error binding param 10 - unsupported type 2017-12-01 09:23:50 -08:00
Justin Emter
0ee6922b39 Added random movie logic but commenting it out for now. 2017-11-30 13:03:39 -08:00
Justin Emter
00ed0eb205 Updated the random movie logic concept. 2017-11-25 18:26:47 -08:00
Justin Emter
4d594ed8a0 Started on random movie logic. 2017-11-25 18:17:15 -08:00
Justin Emter
f626b6e419 Commercial logic + dirty-gap-fix option but defaults to False. 2017-11-13 18:20:24 -08:00
Justin Emter
0a801b2467 Testing commercial logic to better fill up the gap. 2017-11-13 13:39:39 -08:00
Justin Emter
9324091074 Going back to Integer fields in DB. 2017-11-13 08:24:46 -08:00
Justin Emter
3d521c0c0b Added 'useDirtyGapFix' option to pseudo_config in order to fill up empty gaps with commercials and allow the app to cutoff the last commercial. 2017-11-11 11:54:04 -08:00
Justin Emter
7605dd4981 Removed duplicate bootstrap import in generated html. 2017-10-29 16:54:04 -07:00
Justin Emter
395aaa7972 Reverting changes to commercial injection. 2017-10-04 10:12:57 -07:00
Justin Emter
d8da86f126 Trying new commercial logic to try and fill up the gap. 2017-10-03 15:49:44 -07:00
Justin Emter
59a672760e Working on commercial injection logic to better fill up gap between scheduled content. 2017-10-03 10:19:25 -07:00
Justin Emter
e2e406e2f4 Updated conditional to fix the issue where the bgImage/highlighted current item was sometimes working and sometimes not working. 2017-09-23 08:13:47 -07:00
Justin Emter
a97157f57e Added some logic to highlight/update bg image for channel item using the flag... 2017-09-21 11:33:52 -07:00
Justin Emter
263d8799f7 Completely removed Google Cal. Also experimenting with the -g bug where sometimes the prev day is not cleared - very frustrating. 2017-09-19 09:19:13 -07:00
Justin Emter
105648ed4c Added stop functionality for when killing the app via startstop.sh 2017-08-20 01:40:25 -07:00
Justin Emter
daf8ced89b Cleaning up code base, etc. getting ready for release. 2017-08-18 12:50:54 -07:00
Justin Emter
1fc3d1bf7a Added error handling for when a webserver is already running when starting or re-starting the app. 2017-08-17 06:56:35 -07:00
Justin Emter
bea4b4286b Another try at fixing the occasional issue where the previous daily_schedule is not cleared when the new one is generated. 2017-08-17 06:42:03 -07:00
Justin Emter
691e0f4469 Added support for xtra args in the xml to further specify random movie params. There are a few gotchas. The xml attribute should look like this: xtra='actor:tom cruise genre:action contentRating:r' and I the local db must be current. If it fails then it just dismisses all params and grabs random movie. 2017-08-16 16:25:33 -07:00
Justin Emter
8056c4b9ad Started adding test runners. 2017-08-11 14:09:44 -07:00
Justin Emter
1e7219cb70 Importing the previously exported json queue seems to be working. Will overwrite all the shows table with the json data. 2017-08-09 19:39:46 -07:00
Justin Emter
f55f90819d Started adding export / export of playhead queue via json for easy transferring / restarting db. 2017-08-09 19:07:55 -07:00
Justin Emter
d2512b0069 Altered SQL for removing daily_schedule data before adding newly generated data. 2017-08-09 11:09:29 -07:00
Justin Emter
a82af271f7 Added some more strength to the trigger conditions. 2017-08-08 22:20:18 -07:00
Justin Emter
345bf4e565 Added a function to trigger the media that is supposed to be playing now / seek to the right position upon start. Needs testing 2017-08-08 18:02:10 -07:00
Justin Emter
a836ce2eeb Added error supressing / encoding to terminal output 2017-08-06 18:45:11 -07:00
Justin Emter
f096018a19 Ascii fix for illegal chars. 2017-08-06 15:30:47 -07:00
Justin Emter
9a25db5080 Added conditions for not rendering a web server if the serverurl field in config is empty. 2017-08-06 15:13:42 -07:00
Justin Emter
4f0af16414 Logging stuff 2017-08-06 13:32:22 -07:00
Justin Emter
d1f0d2ad49 Edited output / cleaned output for easier debugging. 2017-08-05 17:42:56 -07:00
Justin Emter
52e7aeda42 Added logic to sleep / wake-up according to the 'schedule' lib memory schedule. TODO: clean up code / test. 2017-08-05 14:16:18 -07:00
Justin Emter
1bb1711f5f Fixed the currdir check in the controller. 2017-08-04 20:22:12 -07:00
Justin Emter
1532a0d342 Write path bug on first run. 2017-08-04 20:13:23 -07:00
Justin Emter
704e96f6b6 Fixed the -xml chdir issue (I think). 2017-08-04 20:01:54 -07:00
Justin Emter
d0f428ad34 ajax fixes. 2017-08-04 14:08:25 -07:00
Justin Emter
e78a0fc2c8 Added configurable port to config. 2017-08-04 12:50:29 -07:00
Justin Emter
873308ea06 Added internal server when the -m flag is run or when a schedule is generated...it starts once and stays running until app closes. Also reconfigured the ajax html updated logic for testing. 2017-08-04 11:36:46 -07:00
Justin Emter
16a00200df Reworked ajax logic for refresh. Should make sense now. 2017-08-03 22:45:29 -07:00
Justin Emter
dfc0290316 Added a new var to config where you can specify the server path to the schedules/ directory. If set it will use ajax to determine when to refresh the page, if it is left empty it will use the usual 30 second refresh functionality. 2017-08-03 22:32:25 -07:00
Justin Emter
e75b8a4c6d Fixed the db update queue overwrite issue. 2017-08-03 17:44:53 -07:00
Justin Emter
de59590d14 Removed the relativedelta extra lib so user doesn't need to pip install more than needed. 2017-08-03 15:58:23 -07:00
Justin Emter
aaa157f2c8 Added commercial padding to config / logic. Difficult to test without just running it as is. Fingers crossed. Am converting the config value from seconds to milli's then adding it to the commercial duration - in theory this will work as a padding if value specified is > than 0. 2017-08-03 15:56:06 -07:00
Justin Emter
88df036cdf Added a try / except for play errors. Script should continue even if it fails to play media. 2017-08-03 15:37:08 -07:00
Justin Emter
0e5b65345e Edited time frame to UTC for google calendar. 2017-07-28 18:52:07 -07:00