Metadata-Version: 2.1
Name: yt-dlp-custom
Version: 0.0.1
Summary: A youtube-dl fork with additional features and patches
Home-page: https://github.com/yt-dlp/yt-dlp
Maintainer: pukkandan
Maintainer-email: pukkandan.ytdlp@gmail.com
Project-URL: Documentation, https://github.com/yt-dlp/yt-dlp#readme
Project-URL: Source, https://github.com/yt-dlp/yt-dlp
Project-URL: Tracker, https://github.com/yt-dlp/yt-dlp/issues
Project-URL: Funding, https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators
Classifier: Topic :: Multimedia :: Video
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: Public Domain
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mutagen
Requires-Dist: pycryptodomex
Requires-Dist: websockets
Requires-Dist: certifi
Requires-Dist: brotlicffi ; platform_python_implementation != "CPython"
Requires-Dist: brotli ; platform_python_implementation == "CPython"

Official repository: <https://github.com/yt-dlp/yt-dlp>

**PS**: Some links in this document will not work since this is a copy of the README.md from Github

<!-- MANPAGE: BEGIN EXCLUDED SECTION -->
<div align="center">

[![YT-DLP](https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/.github/banner.svg)](#readme)

[[original package]](https://github.com/yt-dlp/yt-dlp)
</div>

## Introduce
This package only modified to get hastags and unique filename as post-id.<br>

* First modified
```python
#yt_dlp/YoutubeDL.py
def _get_filename_as_uniqid(self, info_dict):
  post_id_reg = re.compile('(?<=video\/)[0-9]+')
  post_id = post_id_reg.search(info_dict['webpage_url'])[0]
  filename = f"/tmp/{post_id}.{info_dict['ext']}"
  return filename

def prepare_filename(self, info_dict, dir_type='', *, outtmpl=None, warn=False):
  """Generate the output filename"""
  ...
  ...
  
  filename = self._get_filename_as_uniqid(info_dict)

```

* Second modified
```python
# yt_dlp/extractor/tiktok.py
def _parse_aweme_video_app(self, aweme_detail):
        aweme_id = aweme_detail['aweme_id']
        video_info = aweme_detail['video']
        author_name_info = aweme_detail['author']

        hashtags_info = []
        for hashtag_info in aweme_detail['text_extra']:
            if hashtag_info.get('hashtag_name'):
                hashtags_info.append(hashtag_info['hashtag_name'])

        return {
            ...
            ...
            'author': author_name_info,
            'hashtags_info': hashtags_info
        }
```
