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

Index error: list index out of range message #105

Open
Jeastwood1995 opened this issue Nov 26, 2023 · 0 comments
Open

Index error: list index out of range message #105

Jeastwood1995 opened this issue Nov 26, 2023 · 0 comments

Comments

@Jeastwood1995
Copy link

I'm running the script with python version 3.8.6 and when running the script I'm getting this error:

Traceback (most recent call last): File "youtube_m3ugrabber.py", line 62, in <module> tvg_id = line[3].strip() IndexError: list index out of range

I'm just analysing what the process is doing and I'm noticing that it's reading the entries in the youtube_channel_info.txt file and splitting the data on the pipe character. However there's a lot of entries that have a missing channel icon url, so I'm assuming that judging from the output that it'll be using the next row for this, which is the channel url. However this therefore means that there is no channel url as this data is now being used for the icon url.

I assume that the channel icon isn't mandatory? I was wondering if you can create a fix for this where if there is no data for the icon url row, then provide a fallback icon that's just generic?

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

1 participant