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

alternate_ordering_playlist.py: AttributeError: 'NoneType' object has no attribute 'group' #196

Open
barrelltitor opened this issue Jul 12, 2023 · 0 comments
Labels
1. Bug request Request for bug to be fixed 2. Level: Easy The request is easy to make 3. Request accepted Request is accepted and will be realised

Comments

@barrelltitor
Copy link

barrelltitor commented Jul 12, 2023

In which file is the bug?
alternate_ordering_playlist.py

Describe the setup (arguments and their values, how it was run, etc.):
I was trying to see if I can change the ordering of Futurama with the script. First I ran the following to get orders

python3 alternate_ordering_playlist.py -s "Futurama" -g

Describe what the bug is:

The script throws an error

Traceback (most recent call last):
  File "/root/gay/a.py", line 136, in <module>
    response = alternate_ordering_playlist(ssn=ssn, series_name=args.SeriesName, get_orders=args.GetOrders, order=args.Order, add_unknown=args.AddUnknown, no_watched=args.NoWatched)
  File "/root/gay/a.py", line 49, in alternate_ordering_playlist
    seasons = re.search(r'<h2>Seasons</h2>\s+?<ul(.|\s)+?</ul', show_info).group(0)
AttributeError: 'NoneType' object has no attribute 'group'

Describe what should be happening:
The script should return the available orders

@barrelltitor barrelltitor added the 1. Bug request Request for bug to be fixed label Jul 12, 2023
@Casvt Casvt added the 2. Level: Easy The request is easy to make label May 8, 2024
@Casvt Casvt changed the title AttributeError: 'NoneType' object has no attribute 'group' alternate_ordering_playlist.py: AttributeError: 'NoneType' object has no attribute 'group' May 8, 2024
@Casvt Casvt added the 3. Request accepted Request is accepted and will be realised label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Bug request Request for bug to be fixed 2. Level: Easy The request is easy to make 3. Request accepted Request is accepted and will be realised
Projects
None yet
Development

No branches or pull requests

2 participants