Skip to content

Commit

Permalink
Merge pull request #24 from edge20200/Updates
Browse files Browse the repository at this point in the history
Bunch of updates. Please be sure to review the example-config and add…
  • Loading branch information
edge20200 authored Dec 23, 2024
2 parents 3e80176 + f3ee0ce commit ad8fb24
Show file tree
Hide file tree
Showing 55 changed files with 8,001 additions and 2,414 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM python:3.11
FROM python:3.12

# Update the package list and install system dependencies including mono
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ffmpeg \
mediainfo \
mediainfo=23.04-1 \
git \
g++ \
cargo \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A simple tool to take the work out of uploading.
- Can re-use existing torrents instead of hashing new
- Generates proper name for your upload using Mediainfo/BDInfo and TMDb/IMDb conforming to site rules
- Checks for existing releases already on site
- Uploads to OE/PTP/BLU/BHD/Aither/THR/STC/R4E(limited)/HP/ACM/LCD/LST/NBL/ANT/FL/HUNO/RF/SN/RTF/OTW/FNP/CBR/UTP/AL/ULCX/HDB/PSS
- Uploads to OE/PTP/BLU/BHD/Aither/THR/R4E(limited)/HP/ACM/LCD/LST/NBL/ANT/FL/HUNO/RF/SN/RTF/OTW/FNP/CBR/UTP/AL/ULCX/HDB/YOINK/TVC/TIK/SPD/SHRI/PTT/PSS
- Adds to your client with fast resume, seeding instantly (rtorrent/qbittorrent/deluge/watch folder)
- ALL WITH MINIMAL INPUT!
- Currently works with .mkv/.mp4/Blu-ray/DVD/HD-DVDs
Expand Down
9 changes: 4 additions & 5 deletions cogs/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
from src.trackers.BHD import BHD
from src.trackers.AITHER import AITHER
from src.trackers.STC import STC
from src.trackers.OE import OE
from src.trackers.LCD import LCD
from src.trackers.CBR import CBR
from data.config import config # type: ignore
from data.config import config # type: ignore

import discord # type: ignore
from discord.ext import commands # type: ignore
import discord # type: ignore
from discord.ext import commands # type: ignore
import os
from datetime import datetime
import asyncio
Expand Down Expand Up @@ -281,7 +280,7 @@ async def send_embed_and_upload(self, ctx, meta):
channel = message.channel
if meta['nohash'] is False:
if meta.get('torrenthash', None) is not None:
reuse_torrent = await client.find_existing_torrent(meta) # noqa F821
reuse_torrent = await client.find_existing_torrent(meta) # noqa F821
if reuse_torrent is not None:
prep.create_base_from_existing_torrent(reuse_torrent, meta['base_dir'], meta['uuid'])

Expand Down
Loading

0 comments on commit ad8fb24

Please sign in to comment.