Re: UK Atlas load/usage warning email
Ian Campbell <[email protected]> Thu, 19 May 2016 21:16:26 +0100
| Newsgroups | gmane.comp.tv.xmltv.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2016-05-19 at 18:43 +0100, Neil Bird wrote: > On 19/05/16 10:39, Ian Campbell wrote: > > Since I switched over to tv_grab_sd_json yesterday I have noticed a > > tidal wave of old repeats getting recorded ;-) > > Would you be kind enough to give a synopsis of what you did? >From memory I: - Signed up on the SD website - Grabbed https://github.com/knowledgejunkie/XMLTV.git (which is a mirror of the official CVS, but seems to be up to date enough) - "perl Makefile.pl && make" - Copied blib/script/tv_grab_sd_json to /usr/local/bin (I did it this way because the Debian packages haven't picked up sd_json yet so this is just a stopgap until they do. - Ran "tv_grab_sd_json --configure", it wanted: - my username and password - to know what sort of channel id I wanted (I choose the shorter mythtv variant, which is a 5 digit thing instead of a URL thing and therefore a bit more convenient for the mythweb ui later) - for lineup info. It does this by asking for country + postcode and then listing the options. At first I entered my full post code but this didn't include Freeview, at which point I saw http://article.gmane.org/gmane.comp.tv.xmltv.devel/11247 and figured out my lineup, which you can enter instead of a country. I've since been told that just entering the first half of the post code gets the full lineup selection and verified that this is true - It wanted to know if I wanted all channels or just a subset, I said all - Ran "tv_grab_sd_json > tmp.xml" - Paged through tmp.xml for <channel> blocks and transcribed the channel ids into the mythweb channel editor (a bit tedious, but we only get ~60 channels here). - Updated my cronjob to use the new grabber. My cronjob was an ancient/custom manual thing using mythfilldatabase --xmlfile --xml. I took the opportunity to switch to the more integrated way, which was basically: - create a symlink from ~/.mythtv/<Source>.xmltv to ~/.xmltv/tv_grab_sd_json.conf - update the DB to have grabber == tv_grab_sd_json (I did this via SQL, which I'm sure isn't recommended). - simplify the cronjob to just a bare "mythfilldatabase" > - set up sources/channels (possibly online first) For sd_json this is done via the grabber CLI not online, the online stuff is for the original NA only SD stuff. I think other than that you've got the gist of it. > I may do the latter in a text editor first against the list of my > current [RT/Atlas-based] xmltvids so I have something to post if > people > are interested. I'll likely turn it into an SQL script to update my > channel table directly - I don't fancy doing them all through > mythtvsetup! I'd definitely recommend the mythweb channel editor over mythtvsetup but sed/awking the xml into a SQL might be possible too, I have few enough channels I didn't bother. HTH, Ian. ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j