Build changes again

This commit is contained in:
Ben Sarmiento
2023-11-21 18:43:38 +01:00
parent 1995a86f29
commit 05d884e879
4 changed files with 20 additions and 45 deletions

View File

@@ -86,25 +86,8 @@ jobs:
- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ steps.version.outputs.version }}
draft: false
prerelease: false
- name: Upload binaries to release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
run: |
for platform in windows/amd64 linux/amd64 linux/arm64 darwin/arm64; do
asset_path="./compressed_artifacts/zurg-$platform-${{ steps.version.outputs.version }}.zip"
if [[ -f "$asset_path" ]]; then
echo "Uploading $asset_path"
gh release upload ${{ steps.version.outputs.version }} "$asset_path" --c ${{ secrets.PAT }}
else
echo "File not found: $asset_path"
fi
done
artifacts: "compressed_artifacts/*.zip"

View File

@@ -31,7 +31,7 @@ COPY --from=obfuscator /app/zurg .
COPY config.example.yml /app/config.yml
# Install runtime dependencies and configure FUSE
RUN apk add --no-cache fuse3 \
RUN apk add --no-cache fuse3 curl \
&& echo 'user_allow_other' >> /etc/fuse.conf
ENTRYPOINT ["./zurg"]

View File

@@ -10,8 +10,7 @@ check_for_changes_every_secs: 15
info_cache_time_hours: 12
enable_repair: true # BEWARE! THERE CAN ONLY BE 1 INSTANCE OF ZURG THAT SHOULD REPAIR YOUR TORRENTS
retain_folder_name_extension: false # if true, the folder name will contain the file extension when it is a torrent for a single file
# use this to update your Plex library for example
retain_folder_name_extension: false # if true, zurg won't modify the filenames from real-debrid
on_library_update: |
echo "hook"
@@ -26,34 +25,28 @@ preferred_hosts: # Run the script here https://github.com/debridmediamanager/rea
- 32.download.real-debrid.com
- 34.download.real-debrid.com
- 40.download.real-debrid.com
# curl https://raw.githubusercontent.com/debridmediamanager/real-debrid-network-test/main/real-debrid-network-test.sh | bash
# List of directory definitions and their filtering rules
directories:
# Configuration for TV shows
shows:
# Configuration for anime shows
anime:
group: media # directories on different groups have duplicates of the same torrent
group_order: 1
group_order: 10 # group order = priority, it defines who eats first on a group
filters:
- regex: /season[\s\.]?\d/i # Capture torrent names with the term 'season' in any case
- regex: /saison[\s\.]?\d/i # For non-English namings
- regex: /stagione[\s\.]?\d/i # if there's french, there should be italian too
- regex: /s\d\d/i # Capture common season notations like S01, S02, etc.
- regex: /\btv/i # anything that has TV in it is a TV show, right?
- contains: complete
- contains: seasons
- any_file_inside_regex: /s\d\d/i
- any_file_inside_regex: /\-\s\d\d\s\-/i
- any_file_inside_regex: /episode.?\d{1,4}/i
- any_file_inside_regex: /ep.?.?\d{1,4}/i
- and: # you can use nested 'and' & 'or' conditions
- has_episodes: true # intelligent detection of episode files inside a torrent
- any_file_inside_regex: /^\[/ # usually anime starts with [ e.g. [SubsPlease]
- any_file_inside_not_regex: /s\d\de\d\d/i # and usually anime doesn't use SxxExx
shows:
group: media
group_order: 20
filters:
- has_episodes: true # intelligent detection of episode files inside a torrent
# Configuration for movies
movies:
group: media # because movies and shows are in the same group,
group_order: 2 # and shows has a lower group_order number than movies, all torrents that doesn't fall into shows will fall into movies
group: media # because anime, shows and movies are in the same group,
group_order: 30 # and anime and shows has a lower group_order number than movies, all torrents that doesn't fall into the previous 2 will fall into movies
filters:
- regex: /.*/ # you cannot leave a directory without filters because it will not have any torrents in it
"ALL MY STUFFS":
group: all # notice the group now is "all", which means it will have all the torrents of shows+movies combined because this directory is alone in this group
filters:
- regex: /.*/

View File

@@ -5,7 +5,6 @@ vendor = other
pacer_min_sleep = 0
[zurghttp]
# it's readonly but it's crazy fast
type = http
url = http://zurg:9999/http
no_head = false