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

invalid literal for int() with base 10: when trying to add xstream provider #348

Open
buconettin opened this issue Aug 20, 2024 · 2 comments

Comments

@buconettin
Copy link

Hi, I added my xstream provider with username and password.
It takes forever and nothing is happening.
I use arch linux and got hypnotix from AUR with yay. (v.4.6)
When I start hypnotix from terminal, it shows me how it shows me a series of successful Getting, Checking, Creating Channel list etc. And also shows the correct amount of Live Groups and VOD Streams etc. But then I get this error:

invalid literal for int() with base 10: '' Traceback (most recent call last): File "/usr/lib/hypnotix/hypnotix.py", line 1599, in reload self.x.load_iptv() File "/usr/lib/hypnotix/xtream.py", line 636, in load_iptv the_group = next( ^^^^^ File "/usr/lib/hypnotix/xtream.py", line 637, in <genexpr> (x for x in self.groups if x.group_id == int(stream_channel["category_id"])), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

@buconettin
Copy link
Author

buconettin commented Aug 20, 2024

I fixed it. Saw that its in python, so here is the fix:

line 629 should be:
if stream_channel["category_id"] == "":

since it should compare with an empty string instead of
if stream_channel["category_id"] is None:

@superolmo
Copy link
Contributor

That's interesting, I see the problem, but I am wondering why I don't get the same error. What version of Python are you using?

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

2 participants