XMLTV grabber for Schedules Direct JSON

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

User avatar
bill6502
Developer
Posts: 1724
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by bill6502 » Thu Aug 20, 2020 6:14 pm

In addition to the above location of ScheulesDirect.DB, you have the
<source name>.xmltv file(s) under ~mythtv/.mythtv too right?

Need to look at the mythfilldatabase.log. Should be in /var/log/mythtv.

If it doesn't offer any clues, pastebin it or attach it here.

dragonflyoh
Newcomer
Posts: 8
Joined: Mon Nov 03, 2014 11:07 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by dragonflyoh » Sat Aug 22, 2020 12:17 am

My computer quit so I will be away for a while.

dragonflyoh
Newcomer
Posts: 8
Joined: Mon Nov 03, 2014 11:07 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by dragonflyoh » Sat Aug 22, 2020 2:41 am

Reinstalling MYTHTV should I make a mythtv user and login as it before setting up MYTHTV?

User avatar
bill6502
Developer
Posts: 1724
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by bill6502 » Sat Aug 22, 2020 3:09 am

You can, but, honestly I don't see why it isn't happening automatically
Here's the packaging script that I would expect to add the user (if it
doesn't exist.)

https://github.com/MythTV/packaging/blo ... ostinst#L8

I think I'm seriously missing something. But won't have time to spin up
a new host.

wesnewell
Senior
Posts: 669
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by wesnewell » Sat Aug 22, 2020 2:03 pm

dragonflyoh wrote:
Sat Aug 22, 2020 2:41 am
Reinstalling MYTHTV should I make a mythtv user and login as it before setting up MYTHTV?
from a terminal type ls /home. it will list all users. You should already have a mythtv user. exp:
wes@mythfe0:~$ ls /home
mythtv wes
If you don't know the password for the mythtv user then do this.
sudo passwd mythtv
Enter a password, remember it.
now type this
su mythtv
enter the pw you just created above.
you should now be user mythtv. you can verify this by the change in the prompt to just a $ sign.
You can now run mythtv-setup as user mythtv. Or you can log out, and log back in as user mythtv. At login select mythtv or other if mythtv isn't an option. Depending on distro you run. Once you login as user mythtv you should go to the default desktop. from there, select mythv backend setup from the menu.
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.

User avatar
heyted
Senior
Posts: 157
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by heyted » Sat Aug 22, 2020 7:02 pm

When I use Mythbuntu Control Panel to install MythTV, the mythtv user is created automatically. I have used MCP on Ubuntu and Xubuntu, so I'm not sure it will work on Mint.

MCP wiki: https://www.mythtv.org/wiki/Mythbuntu_Control_Panel
wesnewell wrote:
Sat Aug 22, 2020 2:03 pm
su mythtv
enter the pw you just created above.
you should now be user mythtv. you can verify this by the change in the prompt to just a $ sign.
You can now run mythtv-setup as user mythtv.
Need to use xhost if doing it this way without logging out and back in as mythtv:
xhost +SI:localuser:mythtv

Edit: MCP cannot be used with Mint unless it is modified.
Last edited by heyted on Sat Sep 12, 2020 7:35 pm, edited 1 time in total.
Ted | My blog

User avatar
heyted
Senior
Posts: 157
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by heyted » Sat Aug 22, 2020 7:19 pm

Just another way to do it -- run as mythtv user without creating password for mythtv:
xhost +SI:localuser:mythtv
sudo --login --user=mythtv mythtv-setup
Ted | My blog

wesnewell
Senior
Posts: 669
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by wesnewell » Sat Aug 22, 2020 7:41 pm

The mythtv user is created if you just install the mythtv package from the repo too. That's never been the problem here. Running mythtv-setup as a regular user is the problem. it creates all the SD files in the regular users home instead of the mythtv home so the grabber doesn't work when run by user mythtv. That's easy to fix manually in a couple of minutes.
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.

dragonflyoh
Newcomer
Posts: 8
Joined: Mon Nov 03, 2014 11:07 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by dragonflyoh » Mon Aug 24, 2020 4:18 pm

Having pains with installing MYTHTV. Decided to remove and try a clean install and after removal, using the command line, I reinstall and all of the old settings are still there. Thinking of quitting as I do not want to reinstall Mint to start over. Thanks for all of the help.

User avatar
bill6502
Developer
Posts: 1724
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by bill6502 » Mon Aug 24, 2020 5:33 pm

"settings" is an actual table name in the mythconverg DB. I'm not sure if that's
what you're referring to above. When the package is removed, the DB isn't, so
everything, not just the settings table remains.

My experience has been that removing/reinstalling doesn't always solve issues.
While it can be useful, it isn't always.

If the only reason to doing it is getting XMLTV to work, I wouldn't reinstall.

A fresh mythfilldatabase.log may point to the issue or full command lines
with the resulting output are frequently of value.

Post Reply