19 Commits

Author SHA1 Message Date
時流
21c38e5cb4 [ie/litv] remove unnecessary parameter
'm3u8_native' is already the default for entry_protocol parameter
2024-11-14 13:56:32 +08:00
時流
25b793b8cd [ie/litv] improve error handling
Returned error might not even be a dict, so we need traverse_obj() here.
On the other hand, no need to try/except around asset_url = ...
since the following request will fail anyway without it.
2024-11-14 13:56:32 +08:00
時流
2efc271b9b [ie/litv] clarify if/else order 2024-11-14 13:56:32 +08:00
時流
ddeb70eaed [ie/litv] inline variables 2024-11-14 13:56:32 +08:00
時流
c5315c16d7 [ie/litv] lint 2024-11-14 13:06:41 +08:00
時流
0c942a029e [ie/litv] Use _search_nextjs_data() 2024-11-14 13:06:39 +08:00
時流
7fa603bcc3 [litv] Fix test
Fixes the following failing test:

____________________ TestAllURLsMatching.test_no_duplicates ____________________
test/test_all_urls.py:79: in test_no_duplicates
    self.assertTrue(ie.suitable(url), f'{type(ie).__name__} should match URL {url!r}')
E   AssertionError: False is not true : LiTVIE should match URL 'https://www.litv.tv/promo/miyuezhuan/?content_id=VOD00044841&'
2024-09-24 08:04:51 +00:00
時流
29964cb9a5 [ie/litv] Bypass georestriction
Adds X-Forwarded-For header with Taiwanese IP.
2024-09-24 07:03:03 +00:00
時流
48160e64c6 [ie/litv] Fix extractor
- The URL scheme changed.
- The general process to get the m3u8 playlist did not changed,
  but a lot of implementation details changed.
2024-09-24 07:03:03 +00:00
sepro
add96eb9f8
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2024-06-12 01:09:58 +02:00
bashonly
f45c4efcd9
[ie/litv] Fix premium content extraction (#8842)
Closes #8654
Authored by: bashonly
2023-12-24 16:33:16 +00:00
gillux
91a670a4f7
[ie/LiTV] Fix extractor (#7785)
Closes #5456
Authored by: jiru
2023-10-06 22:27:54 +00:00
pukkandan
4823ec9f46
Update to ytdl-commit-d1c6c5
[YouTube] [core] Improve platform debug log, based on yt-dlp
d1c6c5c4d6

Except:
    * 6ed34338285f722d0da312ce0af3a15a077a3e2a [jsinterp] Add short-cut evaluation for common expression
        * There was no performance improvement when tested with https://github.com/ytdl-org/youtube-dl/issues/30641
    * e8de54bce50f6f77a4d7e8e80675f7003d5bf630 [core] Handle `/../` sequences in HTTP URLs
        * We plan to implement this differently
2023-05-24 23:30:43 +05:30
coletdjnz
955c89584b
[core] Deprecate internal Youtubedl-no-compression header (#6876)
Authored by: coletdjnz
2023-05-20 22:55:09 +00:00
pukkandan
86e5f3ed2e
[cleanup] Upgrade syntax
Using https://github.com/asottile/pyupgrade

1. `__future__` imports and `coding: utf-8` were removed
2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format`
3. f-strings were cherry-picked from `pyupgrade --py36-plus`

Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
2022-04-12 05:32:51 +05:30
pukkandan
88f23a18e0
[docs,cleanup] Fix linter and misc cleanup
Closes #2419
2022-01-24 03:24:23 +05:30
pukkandan
f40ee5e9a0
[extractor] Add convinience function _yes_playlist 2022-01-24 01:07:14 +05:30
pukkandan
a06916d98e
[extractor] Add write_debug and get_param 2021-05-17 18:59:51 +05:30
Pccode66
7a5c1cfe93
Completely change project name to yt-dlp (#85)
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account

Co-authored-by: Pccode66
Co-authored-by: pukkandan
2021-02-25 00:15:56 +05:30