some vids cannot be downloaded, nor their quality changed - TypeError: 'NoneType' object is not subscriptable

Bug #2008945 reported by Frederic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Qarte
New
Undecided
Unassigned

Bug Description

Hi,
Thanks for your work.
Downloading works fine for some video, but for other video Qarte hangs. It hangs either when downloading, or when editing the downloading parameters.

Here is the debug:
22:31:48: INFO - qarte Qarte-5.2.1
22:31:48: INFO - qarte Python 3.8.10 on Linux-5.4.0-139-generic-x86_64-with-glibc2.29
22:31:48: INFO - qarte File system encoding: utf-8
22:31:48: INFO - qarte System encoding: utf-8
22:31:48: INFO - qarte Locale encoding: ('en_US', 'UTF-8')
qt5ct: using qt5ct plugin
22:31:48: INFO - core Set workspace
22:31:48: INFO - config Load config from: /home/frederic/.Qarte/user_config
22:31:48: INFO - core with video player: True
22:31:48: INFO - core Build main window
qt5ct: D-Bus global menu: no
22:31:48: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230220/
22:31:49: INFO - artetv Sorting videos
22:31:49: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230221/
22:31:50: INFO - artetv Sorting videos
22:31:50: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230222/
22:31:51: INFO - artetv Sorting videos
22:31:51: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230223/
22:31:52: INFO - artetv Sorting videos
22:31:52: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230224/
22:31:53: INFO - artetv Sorting videos
22:31:53: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230225/
22:31:54: INFO - artetv Sorting videos
22:31:54: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230226/
22:31:54: INFO - artetv Sorting videos
22:31:54: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230227/
22:31:55: INFO - artetv Sorting videos
22:31:55: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230228/
22:31:56: INFO - artetv Sorting videos
22:31:56: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20230301/
22:31:56: INFO - artetv Sorting videos
22:31:56: INFO - artetv Check thumbnails
22:31:56: INFO - artetv Thumbnails completed
22:31:56: INFO - artetv Found 252 videos in 7.836137533187866 sec.
22:31:56: INFO - artetv Get update ...
22:31:56: INFO - artetv arte tv list updated
22:31:56: INFO - artetv Clean thumbnail folder
22:31:57: INFO - arteconcert Get update ...
22:31:57: INFO - arteconcert Concert list updated
22:31:57: INFO - arteconcert show category: Classique
22:32:01: INFO - core Call settings dialog box
22:32:26: INFO - core Call About dialog box
22:32:42: INFO - artetv Download item page: /fr/videos/101368-000-A/pan-am-essor-et-chute-d-une-compagnie-mythique/
22:32:42: INFO - artetv Load page: https://www.arte.tv/fr/videos/101368-000-A/pan-am-essor-et-chute-d-une-compagnie-mythique/
22:32:42: INFO - core Choose: Pan Am - Essor et chute d’une compagnie mythique
22:32:42: INFO - core Choose: Pan Am - Essor et chute d’une compagnie mythique
22:32:51: INFO - artetv Load page: https://api.arte.tv/api/player/v2/config/fr/101368-000-A
22:32:51: INFO - artetv Get versions available
 url: https://arteptwebvod.akamaized.net/i/am/ptweb/101000/101300/101368-000-A_,EQ_0_VF-STF_07417807_MP4-1500_AMM-PTWEB-101103194531772_1yngf8ryOC,SQ_0_VF-STF_07417806_MP4-2200_AMM-PTWEB-101103194531772_1ynY78rvCS,HQ_0_VF-STF_07417808_MP4-800_AMM-PTWEB-101103194531772_1yngW8ryLU,MQ_0_VF-STF_07417805_MP4-300_AMM-PTWEB-101103194531772_1yngR8ryGa,.mp4.csmil/master.m3u8
22:32:51: INFO - artetv Get versions available for protocol hls
22:32:51: INFO - artetv Get versions available
 url: https://arteptwebvod.akamaized.net/i/am/ptweb/101000/101300/101368-000-A_,EQ_0_VOA-STA_07417795_MP4-1500_AMM-PTWEB-101102596628746_1ynfz8ry3C,SQ_0_VOA-STA_07417794_MP4-2200_AMM-PTWEB-101102596628746_1ynWw8rtYA,HQ_0_VOA-STA_07417796_MP4-800_AMM-PTWEB-101102596628746_1yngC8ry9f,MQ_0_VOA-STA_07417793_MP4-300_AMM-PTWEB-101102596628746_1ynfl8rxyq,.mp4.csmil/master.m3u8
22:32:51: INFO - artetv Get versions available for protocol hls
22:32:51: INFO - artetv Get versions available
 url: https://arteptwebvod.akamaized.net/i/am/ptweb/101000/101300/101368-000-A_,EQ_0_VOA-STMA_07417799_MP4-1500_AMM-PTWEB-101102598569159_1yngP8ryGZ,SQ_0_VOA-STMA_07417798_MP4-2200_AMM-PTWEB-101102598569159_1ynY68rvDN,HQ_0_VOA-STMA_07417800_MP4-800_AMM-PTWEB-101102598569159_1yngD8ry9f,MQ_0_VOA-STMA_07417797_MP4-300_AMM-PTWEB-101102598569159_1yng08ry3C,.mp4.csmil/master.m3u8
22:32:51: INFO - artetv Get versions available for protocol hls
22:32:52: INFO - artetv Get versions available
 url: https://arteptwebvod.akamaized.net/i/am/ptweb/101000/101300/101368-000-A_,EQ_0_VAAUD_07417803_MP4-1500_AMM-PTWEB-80882586460200_1yngQ8ryGa,SQ_0_VAAUD_07417802_MP4-2200_AMM-PTWEB-80882586460200_1ynXe8rung,HQ_0_VAAUD_07417804_MP4-800_AMM-PTWEB-80882586460200_1yngM8ryG4,MQ_0_VAAUD_07417801_MP4-300_AMM-PTWEB-80882586460200_1yngL8ryG4,.mp4.csmil/master.m3u8
22:32:52: INFO - artetv Get versions available for protocol hls
22:32:52: WARNING - artetv Quality 432 expected not found!
22:32:52: INFO - downloader Task added: 101368-000-A
Traceback (most recent call last):
  File "/usr/share/qarte/artetv.py", line 844, in start_download
    self.downloader.start_downloading()
  File "/usr/share/qarte/downloader.py", line 79, in start_downloading
    if video.quality["is_hls"]:
TypeError: 'NoneType' object is not subscriptable
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/var/crash/_usr_bin_qarte.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/qarte/artetv.py", line 844, in start_download
    self.downloader.start_downloading()
  File "/usr/share/qarte/downloader.py", line 79, in start_downloading
    if video.quality["is_hls"]:
TypeError: 'NoneType' object is not subscriptable

22:33:32: INFO - artetv Cancel downloading
22:33:41: INFO - artetv Configure downloading of Pan Am - Essor et chute d’une compagnie mythique
22:33:41: INFO - gui.tvdownloadingconfig Config downloading lang: fr, quality: None
Traceback (most recent call last):
  File "/usr/share/qarte/gui/basket.py", line 342, in send_signal
    self.table.config_download(self.item)
  File "/usr/share/qarte/gui/basket.py", line 173, in config_download
    self.driver.configure_downloading(movie)
  File "/usr/share/qarte/artetv.py", line 941, in configure_downloading
    self.cfg.configure(video, self.core.cfg.get('tv_quality'),
  File "/usr/share/qarte/gui/tvdownloadingconfig.py", line 128, in configure
    if video.quality["is_hls"]:
TypeError: 'NoneType' object is not subscriptable
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/var/crash/_usr_bin_qarte.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/qarte/gui/basket.py", line 342, in send_signal
    self.table.config_download(self.item)
  File "/usr/share/qarte/gui/basket.py", line 173, in config_download
    self.driver.configure_downloading(movie)
  File "/usr/share/qarte/artetv.py", line 941, in configure_downloading
    self.cfg.configure(video, self.core.cfg.get('tv_quality'),
  File "/usr/share/qarte/gui/tvdownloadingconfig.py", line 128, in configure
    if video.quality["is_hls"]:
TypeError: 'NoneType' object is not subscriptable
22:34:21: INFO - core Prepare to exit
22:34:21: INFO - config Save user config
22:34:21: INFO - config Configuration saved

I changed the default Quality to 1080, but the same problem occurs with the same video.
Let me know if I can do more tests.
Regards

Frederic

and the About
Qarte 5.2.1
Platform Linux-5.4.0-139-generic-x86_64-with-glibc2.29
Qt 5.12.8
Python 3.8.10
PyQt 5.14.1
Sip 4.19.21

Frederic (frr.ubuntu)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.