Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DreanorAnime/Scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0
Choose a base ref
...
head repository: DreanorAnime/Scripts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 5 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 30, 2020

  1. Create SyncMangaToNAS.md

    dreanor authored Jul 30, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8704fbb View commit details

Commits on Oct 1, 2020

  1. Update SyncMangaToNAS.md

    dreanor authored Oct 1, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ab0d8df View commit details
  2. Merge pull request #1 from DreanorAnime/dreanor-patch-1

    Update SyncMangaToNAS.md
    dreanor authored Oct 1, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    391f713 View commit details

Commits on Nov 14, 2020

  1. Create moveTorrents.sh

    dreanor authored Nov 14, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4f0fada View commit details

Commits on May 13, 2021

  1. Update moveTorrents.sh

    dreanor authored May 13, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a6c0500 View commit details
Showing with 19 additions and 0 deletions.
  1. +4 −0 src/SyncMangaToNAS.md
  2. +15 −0 src/moveTorrents.sh
4 changes: 4 additions & 0 deletions src/SyncMangaToNAS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1. Install Tachiyomi on your Android https://tachiyomi.org/
2. Setup Sync with MAL/Anilist/Kitsu
3. Install SMBSync2 https://play.google.com/store/apps/details?id=com.sentaroh.android.SMBSync2&hl=en
4. Setup Autosync between Android Tachiyomi\downloads and your NAS
15 changes: 15 additions & 0 deletions src/moveTorrents.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

for f in *.mkv
do
folderName=$(echo ${f//,/}) #remove all ,
folderName=$(echo ${f//./}) # remove all .
folderName=$(echo "$folderName" | sed 's![^-]*$!!' | sed 's/.$//' | xargs)

echo Folder: $folderName
echo File: $f

mkdir "$folderName"
mv "$f" "$folderName"
chmod 777 "$folderName"
done