Software Alternatives & Reviews

yt-dlp: How do I export variables from within -exec? I tried "export" and "set -a" everywhere I could and variables are unset outside of -exec

Return YouTube Dislike yt-dlp
  1. 👉 Returns ability to see dislikes 👉 Returns ability to see dislike statistics and rating bar.
    Pricing:
    • Open Source
    """ SPDX-License-Identifier: MIT https://opensource.org/licenses/MIT Copyright © 2022 pukkandan.ytdlp@gmail.com Yt-dlp plugin postprocessor for https://returnyoutubedislike.com/ Needs yt-dlp v2022.04.08 or above See https://github.com/yt-dlp/yt-dlp#plugins for how to install and Pass "--use-postprocessor ReturnYoutubeDislikes:when=pre_process" To activate the PostProcessor Fields defined in "RYD_FIELDS" are updated using the information from the API. The original values of those fields and the response from the API are saved Under "RYD" key in the info dict Note: The API has rate-limiting: https://returnyoutubedislike.com/docs/usage-rights """ From yt_dlp.postprocessor.common import PostProcessor RYD_FIELDS = { 'like_count': 'likes', 'dislike_count': 'dislikes', 'average_rating': 'rating', 'view_count': 'viewCount', } SUPPORTED_EXTRACTORS = { 'Youtube', } Class ReturnYoutubeDislikesPP(PostProcessor): def run(self, info): extractor = info['extractor_key'] if extractor not in SUPPORTED_EXTRACTORS: self.to_screen(f'{self.PP_NAME} is not supported for {extractor}') return [], info api_data = self._download_json( f'https://returnyoutubedislikeapi.com/votes?videoId={info["id"]}') or {} info['RYD'] = { 'response': api_data, 'original': {k: info.get(k) for k in RYD_FIELDS.keys()} } if api_data: info.update({k: api_data.get(v) for k, v in RYD_FIELDS.items()}) return [], info.

    #Productivity #YouTube #IDE 145 social mentions

  2. 2
    A youtube-dl fork with additional features and fixes.
    Pricing:
    • Open Source
    """ SPDX-License-Identifier: MIT https://opensource.org/licenses/MIT Copyright © 2022 pukkandan.ytdlp@gmail.com Yt-dlp plugin postprocessor for https://returnyoutubedislike.com/ Needs yt-dlp v2022.04.08 or above See https://github.com/yt-dlp/yt-dlp#plugins for how to install and Pass "--use-postprocessor ReturnYoutubeDislikes:when=pre_process" To activate the PostProcessor Fields defined in "RYD_FIELDS" are updated using the information from the API. The original values of those fields and the response from the API are saved Under "RYD" key in the info dict Note: The API has rate-limiting: https://returnyoutubedislike.com/docs/usage-rights """ From yt_dlp.postprocessor.common import PostProcessor RYD_FIELDS = { 'like_count': 'likes', 'dislike_count': 'dislikes', 'average_rating': 'rating', 'view_count': 'viewCount', } SUPPORTED_EXTRACTORS = { 'Youtube', } Class ReturnYoutubeDislikesPP(PostProcessor): def run(self, info): extractor = info['extractor_key'] if extractor not in SUPPORTED_EXTRACTORS: self.to_screen(f'{self.PP_NAME} is not supported for {extractor}') return [], info api_data = self._download_json( f'https://returnyoutubedislikeapi.com/votes?videoId={info["id"]}') or {} info['RYD'] = { 'response': api_data, 'original': {k: info.get(k) for k in RYD_FIELDS.keys()} } if api_data: info.update({k: api_data.get(v) for k, v in RYD_FIELDS.items()}) return [], info.

    #Video Downloader #Download Manager #YouTube Downloader 865 social mentions

Discuss: yt-dlp: How do I export variables from within -exec? I tried "export" and "set -a" everywhere I could and variables are unset outside of -exec

Log in or Post with