Plex-scripts
Plex-scripts copied to clipboard
alternate_ordering_playlist.py: AttributeError: 'NoneType' object has no attribute 'group'
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