Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any example how runs? #23

Closed
Toei79 opened this issue Feb 26, 2022 · 17 comments
Closed

Any example how runs? #23

Toei79 opened this issue Feb 26, 2022 · 17 comments

Comments

@Toei79
Copy link

Toei79 commented Feb 26, 2022

im fully new on this i have basic skill on linux, just try run scrip .sh one but i get errors i suppose to fill somethings on script right?

i add my username and password values country USA, and zipcode still get errors , i guess its something that i dont fill on script,

any example?

whats the ini file? one that ends with .dist i fill my info in that one. thanks

@daniel-widrick
Copy link
Owner

whats the ini file? one that ends with .dist i fill my info in that one

Fill this file out than copy or move or rename it to config.ini. the config.ini.dist file is an example for config.ini

Try that out and then if you have trouble come on back and post any specific errors/etc you get.

@Toei79
Copy link
Author

Toei79 commented Feb 26, 2022

image

hi i get this i fill config.ini with my user name (email) and pasword , zipcode.

@daniel-widrick
Copy link
Owner

I'll address this later in the code/release but it appears it currently expects config.ini to be named zap2itconfig.ini

For the time being can rename the config.ini to zap2itconfig.ini and test again? sorry about the confusion

@Toei79
Copy link
Author

Toei79 commented Feb 28, 2022

02-28-2022 (150337)

fix that still get errors. only data that i add was to zap2itconfig.ini

@daniel-widrick
Copy link
Owner

That error suggests to me an authentication problem. I'll try to dig into more soon.

@melendyk
Copy link

melendyk commented Mar 3, 2022

02-28-2022 (150337)

fix that still get errors. only data that i add was to zap2itconfig.ini

I've recreated your error by using invalid password with my my user id, so make sure you are using valid credentials in the .ini file.
Also, to be safe, I run the command this way explicitly including all options/parameters:
python3 zap2it-GuideScrape.py -c zap2itconfig.ini -o xmlfile.xml

@Toei79
Copy link
Author

Toei79 commented Mar 4, 2022

i still getting same thing
03-03-2022 (233633)

2022-03-03_23-42-22

this its the listings page? just to be sure. if i changed password and run again also i run new parameters
https://tvlistings.zap2it.com/?aid=gapzap

@melendyk
Copy link

melendyk commented Mar 4, 2022

That should be all you need... if you can log into that page with your email (username) and password, it should work...
Screenshot from 2022-03-04 08-11-27

@Toei79
Copy link
Author

Toei79 commented Mar 5, 2022

That should be all you need... if you can log into that page with your email (username) and password, it should work... Screenshot from 2022-03-04 08-11-27

thanks thats why i asked an example. its all that i need.

my error was i only place my username and not email. my username for zap was name on my email.

i did charly instead charly@gmail.com

its running fine now thanks!

@daniel-widrick
Copy link
Owner

I have updated the config.ini.dist to be more reflective of this: facaf0c

@Toei79
Copy link
Author

Toei79 commented Mar 6, 2022

Question how you use guide?

i try using it with tivimate but its only detecting the first channel. of epg
im using hdhomerun with tivimate. and loading epg on tivimate.

@melendyk
Copy link

melendyk commented Mar 7, 2022

Sorry I can't help you with that... I use it to load guide in Jellyfin server (which uses my hdhomerun) and just use jellyfin clients. Why not just use hdhomerun app if that's all your trying to do is watch tv and have a guide... the app shows a guide without having to load anything specific.

@Toei79
Copy link
Author

Toei79 commented Mar 9, 2022

Thanks i prefer tivimate plus i guess you need pay for record with hdhomerun.

@daniel-widrick
Copy link
Owner

I've never used tivimate but, I have recorded tv shows with this guide, my hdhomerun, and jellyfin.

@Toei79
Copy link
Author

Toei79 commented Mar 9, 2022

actually its fine, i mean, i know a github script that get same style xml data, , one that extract epg from hdhommerun devices, i was hoping this one was different, but guess not, issue its tivimate .

issue for what i remember can be fixed adding channel list to beginning of the xml file.

03-08-2022 (220051)

for example like this.

im been thinking there its two kind of xml epg data but i never found some info about it.

@Toei79
Copy link
Author

Toei79 commented Mar 11, 2022

well i found some way , maybe sharing this its useful for any to read issues section.

i add epg to my tvheadend, then i able to use it add it to tivimate, kinda like after tvheadend process the epg , it make it workeable for tivimate , and yea structure changes when epg its loaded from tvheadend.

the only issue is icons.

@djlzotz
Copy link

djlzotz commented May 26, 2024

I am having the following authentication error. Is there anything I should know about special characters or the like. I suspect they may be causing issues.

python3 zap2it-GuideScrape.py -c zap2itconfig.ini -o xmlguid.xmltv
Namespace(configfile='zap2itconfig.ini', outputfile='xmlguid.xmltv', language=None, findid=False)
Loading config: zap2itconfig.ini and outputting: xmlguid.xmltv
Traceback (most recent call last):
File "/docker/zap2it/zap2it-GuideScraping-main/zap2it-GuideScrape.py", line 315, in
guide.BuildGuide()
File "/docker/zap2it/zap2it-GuideScraping-main/zap2it-GuideScrape.py", line 243, in BuildGuide
self.Authenticate()
File "/docker/zap2it/zap2it-GuideScraping-main/zap2it-GuideScrape.py", line 35, in Authenticate
authResponse = urllib.request.urlopen(authRequest).read()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants