Repository: yt-dlp/yt-dlp

Issue:
New extractor for Qingting.fm(蜻蜓FM)
### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running yt-dlp version **2022.10.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that none of provided URLs [violate any copyrights](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#is-the-website-primarily-used-for-piracy) or contain any [DRM](https://en.wikipedia.org/wiki/Digital_rights_management) to the best of my knowledge
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and am willing to share it if required

### Region

China

### Example URLs

- single audio: https://www.qingting.fm/channels/378005/programs/23023573
- single audio: https://m.qingting.fm/vchannels/378005/programs/23023573

### Provide a description that is worded well enough to be understood

Qingting.fm(蜻蜓FM) is a network audio application. Since its release in September 2011, it has grown into one of the leading audio content aggregation platforms in China. 

A new extractor for Qingting.fm(蜻蜓FM) will help listeners to download favorite audios and save them personally.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://www.qingting.fm/channels/378005/programs/23023573']                              
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8                                    
[debug] yt-dlp version 2022.10.04 [4e0511f] (pip) API                                                                                    
[debug] Python 3.10.8 (CPython 64bit) - macOS-11.6-x86_64-i386-64bit                                                           
[debug] Checking exe version: ffmpeg -bsfs                                                                                     
[debug] Checking exe version: ffprobe -bsfs                                                                                    
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2, rtmpdump 2.4                                                        
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}                                                                                                          
[debug] Loaded 1690 extractors                                                                                                 
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest                                      
Latest version: 2022.10.04, Current version: 2022.10.04                                                                        
yt-dlp is up to date (2022.10.04)                                                                                              
[debug] [generic] Extracting URL: https://www.qingting.fm/channels/378005/programs/23023573                                    
[generic] 23023573: Downloading webpage                                                                                        
[redirect] Following redirect to https://www.qingting.fm/channels/378005/programs/23023573/                                    
[debug] [generic] Extracting URL: https://www.qingting.fm/channels/378005/programs/23023573/                                   
[generic] 23023573: Downloading webpage                                                                                        
WARNING: [generic] Falling back on generic information extractor                                                               
[generic] 23023573: Extracting information                                                                                     
[debug] Looking for Brightcove embeds                                                                                          
[debug] Looking for embeds                                                                                                     
ERROR: Unsupported URL: https://www.qingting.fm/channels/378005/programs/23023573/                                             
Traceback (most recent call last):                                                                                             
  File "/usr/local/Cellar/yt-dlp/2022.10.4/libexec/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1477, in wrapper       
    return func(self, *args, **kwargs)                                                                                                   
  File "/usr/local/Cellar/yt-dlp/2022.10.4/libexec/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1553, in __extract_info
    ie_result = ie.extract(url)                                                                                                          
  File "/usr/local/Cellar/yt-dlp/2022.10.4/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 672, in extract       
    ie_result = self._real_extract(url)                                                                                                  
  File "/usr/local/Cellar/yt-dlp/2022.10.4/libexec/lib/python3.10/site-packages/yt_dlp/extractor/generic.py", line 3062, in _real_extract 
    raise UnsupportedError(url)                                                                                                
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.qingting.fm/channels/378005/programs/23023573/
```



Discussion:

Resolving patch:
diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py
--- a/yt_dlp/extractor/_extractors.py
+++ b/yt_dlp/extractor/_extractors.py
@@ -1404,6 +1404,7 @@
 )
 from .puls4 import Puls4IE
 from .pyvideo import PyvideoIE
+from .qingting import QingTingIE
 from .qqmusic import (
     QQMusicIE,
     QQMusicSingerIE,
diff --git a/yt_dlp/extractor/qingting.py b/yt_dlp/extractor/qingting.py
new file mode 100644
--- /dev/null
+++ b/yt_dlp/extractor/qingting.py
@@ -0,0 +1,47 @@
+from .common import InfoExtractor
+
+from ..utils import traverse_obj
+
+
+class QingTingIE(InfoExtractor):
+    _VALID_URL = r'https?://(?:www\.|m\.)?(?:qingting\.fm|qtfm\.cn)/v?channels/(?P<channel>\d+)/programs/(?P<id>\d+)'
+    _TESTS = [{
+        'url': 'https://www.qingting.fm/channels/378005/programs/22257411/',
+        'md5': '47e6a94f4e621ed832c316fd1888fb3c',
+        'info_dict': {
+            'id': '22257411',
+            'title': '用了十年才修改，谁在乎教科书？',
+            'channel_id': '378005',
+            'channel': '睡前消息',
+            'uploader': '马督工',
+            'ext': 'm4a',
+        }
+    }, {
+        'url': 'https://m.qtfm.cn/vchannels/378005/programs/23023573/',
+        'md5': '2703120b6abe63b5fa90b975a58f4c0e',
+        'info_dict': {
+            'id': '23023573',
+            'title': '【睡前消息488】重庆山火之后，有图≠真相',
+            'channel_id': '378005',
+            'channel': '睡前消息',
+            'uploader': '马督工',
+            'ext': 'm4a',
+        }
+    }]
+
+    def _real_extract(self, url):
+        channel_id, pid = self._match_valid_url(url).group('channel', 'id')
+        webpage = self._download_webpage(
+            f'https://m.qtfm.cn/vchannels/{channel_id}/programs/{pid}/', pid)
+        info = self._search_json(r'window\.__initStores\s*=', webpage, 'program info', pid)
+        return {
+            'id': pid,
+            'title': traverse_obj(info, ('ProgramStore', 'programInfo', 'title')),
+            'channel_id': channel_id,
+            'channel': traverse_obj(info, ('ProgramStore', 'channelInfo', 'title')),
+            'uploader': traverse_obj(info, ('ProgramStore', 'podcasterInfo', 'podcaster', 'nickname')),
+            'url': traverse_obj(info, ('ProgramStore', 'programInfo', 'audioUrl')),
+            'vcodec': 'none',
+            'acodec': 'm4a',
+            'ext': 'm4a',
+        }


Test patch: