Skip to content

Commit

Permalink
Fix yt-dlp-FixupMtime installation
Browse files Browse the repository at this point in the history
  • Loading branch information
cradle8810 committed Oct 27, 2024
1 parent f0eb46e commit bf672e7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tasks/sns_dl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,37 @@
break_system_packages: true
extra_args: "--upgrade"

- name: "Get yt-dlp-FixupMtime Installed Path"
ansible.builtin.shell:
executable: /bin/bash
cmd: >
set -o pipefail &&
pip show yt-dlp-FixupMtime |
grep Location | awk -F ': ' '{print $2}' | tr -d '\n'
register: yt_dlp_fixuptime_path
changed_when: false

- name: "Make a yt-dlp plugin dir in homedir"
ansible.builtin.file:
path: "{{ item.homedir }}/.yt-dlp/plugins/yt-dlp-FixupMtime"
state: directory
recurse: true
mode: '0755'
owner: "{{ item.username }}"
group: "{{ item.username }}"
loop: "{{ all.vars.user }}"
no_log: true

- name: "Make a yt-dlp-FixupMtime's symbolic link to correct location"
ansible.builtin.file:
src: "{{ yt_dlp_fixuptime_path.stdout }}/yt_dlp_plugins"
dest: "{{ item.homedir }}/.yt-dlp/plugins/yt-dlp-FixupMtime/yt_dlp_plugins"
owner: "{{ item.username }}"
group: "{{ item.username }}"
state: link
loop: "{{ all.vars.user }}"
no_log: true

- name: Download twitter-loader
ansible.builtin.unarchive:
src: "https://github.com/mmpx12/twitter-media-downloader/releases/download/v1.13.3/twitter-media-downloader-v1.13.3-linux-amd64.tar.gz"
Expand Down

0 comments on commit bf672e7

Please sign in to comment.