Commit graph

1850 commits

Author SHA1 Message Date
Adam Sutton
edbc12015d Add global object hash similar to that used by andoma in original code. Although mine includes ALL objects, its currently only used for broadcast lookup as generally the others will probably be quicker (episodes?) to go via the normal URI based maps. 2012-07-30 15:47:20 +01:00
Adam Sutton
6871fa8b68 Some tidying up. 2012-07-30 15:47:20 +01:00
Adam Sutton
43e2031ad4 Correct sanity check code. 2012-07-30 15:47:20 +01:00
Adam Sutton
484ab9f99a Remove possible free() before data access. 2012-07-30 15:47:20 +01:00
Adam Sutton
fc6061bb43 First stab at adding the DVR code back in. Very much WIP and no attempt to add clever stuff at this stage. 2012-07-30 15:47:20 +01:00
Adam Sutton
75d18af17b Fix memory issues and use much saner object alloc strategy. 2012-07-30 15:46:53 +01:00
Adam Sutton
bd6b8a4793 Fix mutex unlock placement and free memory on config load. 2012-07-30 15:46:53 +01:00
Adam Sutton
f7b512771b Add missing free() 2012-07-30 15:46:53 +01:00
Adam Sutton
0d84a7615a Some minor debug output. 2012-07-30 15:46:53 +01:00
Adam Sutton
a6e424a521 Cleanup EPG after everything has been fully loaded from disk. 2012-07-30 15:46:53 +01:00
Adam Sutton
5329a9959e Remove unused channels (temp hack) and include epg save stats. Also remove some printfs from htsp code. 2012-07-30 15:46:53 +01:00
Adam Sutton
fef7afdacb Remove old test code and printfs. 2012-07-30 15:46:52 +01:00
Adam Sutton
f9333d0072 Minor fix to get htsp epg download working. 2012-07-30 15:46:52 +01:00
Adam Sutton
e9a8ad5a48 Some fixes and updates to get broadcast expiration and now/next working. 2012-07-30 15:46:52 +01:00
Adam Sutton
cd3482dc06 Updated various EPG calls to the new API. 2012-07-30 15:46:52 +01:00
Adam Sutton
b7575b18e5 Significant update to the EPG code, now have reference counting and timeouts (not tested) and some general simplifications to the API. 2012-07-30 15:46:52 +01:00
Adam Sutton
b044969297 Some bugfixes. Note: currently cannot handle scheduling overlaps. 2012-07-30 15:46:52 +01:00
Adam Sutton
585a740253 Significant reworking of EPG code to use an OO style, its still rough and there are quite a few bodges to make it work since its not proper OO (but will be if included in TVH3). 2012-07-30 15:46:52 +01:00
Adam Sutton
bc10bb4a00 Update cron to use u64 config and add error output on pyepg xml parse error. 2012-07-30 15:46:52 +01:00
Adam Sutton
dc58e97ec9 Some more hacks to the epg javascript to show "extra" info (only concept, not really usable). 2012-07-30 15:46:52 +01:00
Adam Sutton
349e7a7119 Added parse stats to pyepg code. 2012-07-30 15:46:52 +01:00
Adam Sutton
129a86be20 Simple demo to list alternative broadcasts, this is a bit of a hack but gives a useful demo of the capabilties of the new structure and helps in testing too. 2012-07-30 15:46:52 +01:00
Adam Sutton
faafb16097 Remove some debug and fix a minor bug. 2012-07-30 15:46:52 +01:00
Adam Sutton
41267995e1 Some updates to improve channel linking and its save/load support. 2012-07-30 15:46:51 +01:00
Adam Sutton
aba9000a62 Now have full EPG save/load, I have included internal IDs in all objects though I think they are redundant (and except for broadcast they are not saved). 2012-07-30 15:46:51 +01:00
Adam Sutton
2224146b2b Some further updates to xmltv importer, also added parsing stats. 2012-07-30 15:46:51 +01:00
Adam Sutton
988eb8133a Start work on epg load/save and also added back in initial xmltv parser. 2012-07-30 15:46:51 +01:00
Adam Sutton
a78994729e Fix some problems related to series number parsing. 2012-07-30 15:46:51 +01:00
Adam Sutton
533f926e49 Some basic per channel searching re-enabled. 2012-07-30 15:46:24 +01:00
Adam Sutton
1f3eada50c Fix stupid time parsing error. 2012-07-30 15:46:24 +01:00
Adam Sutton
6cb00158c6 Some initial epg_channel_t to channel_t linking. 2012-07-30 15:46:24 +01:00
Adam Sutton
1e21969095 Clear some more redundant code from the channel structure. 2012-07-30 15:46:24 +01:00
Adam Sutton
28c3bd8ffb Some more additions back into the HTSP, not all underlying code is actually functional. 2012-07-30 15:46:23 +01:00
Adam Sutton
62daaac5cd Add some HTSP support back in. 2012-07-30 15:46:23 +01:00
Adam Sutton
d65338c072 Added some of the simpleui back in, some additions to epg_broadcast. 2012-07-30 15:46:23 +01:00
Adam Sutton
6c8c585bc5 Some minor changes to code layout, added better epg query support (ala old code) so I can start to get stuff into UI EPG (to help with testing). 2012-07-30 15:46:23 +01:00
Adam Sutton
f19f272e5b Some further broadcast/episode linking and started to add back in some UI code just to see what is going on. 2012-07-30 15:46:23 +01:00
Adam Sutton
cfb0179e80 Some more work on getting import from pyepg working. I think I have a slightly better idea how things are likely to work. Current broadcast search is probably a bit noddy, but will do for now. 2012-07-30 15:46:23 +01:00
Adam Sutton
9f247955fc Some import now working, though only in as much as I am creating the various objects. They are not linked and no processing is done on them. 2012-07-30 15:46:23 +01:00
Adam Sutton
d1dcaf4e69 Basically hack out all code that currently does not work due to partial epg rewrite. 2012-07-30 15:46:23 +01:00
Adam Sutton
8ca64083f1 Some slight re-arrangements (still wip, not sure of best structure). 2012-07-30 15:45:30 +01:00
Adam Sutton
046f9f112c Initial hack in of new epg data structures, xmltv refs hacked out and some code left in for compat. this will not compile/run. 2012-07-30 15:45:30 +01:00
Adam Sutton
2819dbbf61 started work on epggrab module for pyepg (demo). 2012-07-30 15:45:02 +01:00
Adam Sutton
1a73eecb65 Remove some debug and finish of a few bits and pieces. 2012-07-30 15:44:14 +01:00
Adam Sutton
4f8dc6e315 Start initial work on new epggrab framework. 2012-07-30 15:44:14 +01:00
Adam Sutton
5084ca63fd Reject muxes that fail to tune (almost always out of range due to bad autodiscovery) and ensure this is also locked in initial scan stats. 2012-07-30 13:34:23 +01:00
Adam Sutton
d059d808bb Fix yet another stupid mistake in my preconf mod. 2012-07-30 13:34:23 +01:00
Adam Sutton
507392dd3c Add users full set of groups to process permission list. 2012-07-30 13:34:23 +01:00
Adam Sutton
bc5937089d Minor correction to the handling of content types in DVR auto rec table. 2012-07-30 13:34:23 +01:00
Adam Sutton
425e9f7f87 Bugger! another printf left in the code. 2012-07-30 13:34:23 +01:00