Bug 480463

Summary: Audiotube is suddenly terminated when the user tries to play specific tracks.
Product: [Applications] audiotube Reporter: João Lucas <joaolsalmeida>
Component: generalAssignee: Jonah Brüchert <jbb>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A video showing the described behavior.

Description João Lucas 2024-01-28 22:33:45 UTC
SUMMARY
***
Audiotube unexpectadly crashes when trying to play specific tracks or albuns. Two examples are the albuns "Head Hunters", from Herbie Hancock and "Bitches Brew", from Miles Davis. 
***


STEPS TO REPRODUCE
1. Type "Head Hunters" on the search field.
2. Select the option "Head Hunters" from the field "albuns"  to be played.

OBSERVED RESULT
Audiotube is suddenly terminated.

EXPECTED RESULT
The application should play the album, as it works for many others examples I have tested it. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 23.10
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

- I am running on X11.
- Audiotube is installed as flatpak. 
- When running Audiotube via command line, the following log is outputted after the application be terminated.

[youtube] Extracting URL: WtORTuLJw7o
[youtube] WtORTuLJw7o: Downloading webpage
[youtube] WtORTuLJw7o: Downloading ios player API JSON
[youtube] WtORTuLJw7o: Downloading android player API JSON
[youtube] WtORTuLJw7o: Downloading m3u8 information
futuresql: Running "insert or replace into songs (video_id, title, artist, album) values (?, ?, ?, ?)"
futuresql: Running "insert or ignore into played_songs (video_id, plays) values (?, ?)"
futuresql: Running "update played_songs set plays = plays + 1 where video_id = ? "
futuresql: Running "select * from played_songs natural join songs"
futuresql: Running "select * from played_songs natural join songs order by plays desc limit 10"
Unable to cast Python instance of type <class 'NoneType'> to C++ type 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >'⏎
Comment 1 João Lucas 2024-01-28 22:38:49 UTC
Created attachment 165318 [details]
A video showing the described behavior.