Added path seperator on the content_path, fixed reporting errors.
This commit is contained in:
parent
a15c2473c5
commit
2cb81e2c41
6 changed files with 63 additions and 20 deletions
|
|
@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.7.2] - 2021-04-14
|
||||||
|
### Changed
|
||||||
|
- Fixed issue where sometimes the content path is not recognized by Sonarr.
|
||||||
|
- Fixed reporting errors when a RD torrent errors.
|
||||||
|
|
||||||
## [1.7.1] - 2021-04-01
|
## [1.7.1] - 2021-04-01
|
||||||
### Added
|
### Added
|
||||||
- Add Update.ps1 to automatically download the latest version from Github for Windows users.
|
- Add Update.ps1 to automatically download the latest version from Github for Windows users.
|
||||||
|
|
|
||||||
64
Dockerfile
64
Dockerfile
|
|
@ -4,9 +4,11 @@ FROM amd64/node:15.5-buster AS node-build-env
|
||||||
RUN mkdir /appclient
|
RUN mkdir /appclient
|
||||||
WORKDIR /appclient
|
WORKDIR /appclient
|
||||||
|
|
||||||
COPY client/. .
|
RUN \
|
||||||
RUN npm ci
|
git clone https://github.com/rogerfar/rdt-client.git . && \
|
||||||
RUN npx ng build --prod --output-path=out
|
cd client && \
|
||||||
|
npm ci && \
|
||||||
|
npx ng build --prod --output-path=out
|
||||||
|
|
||||||
# Stage 2 - Build the backend
|
# Stage 2 - Build the backend
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:5.0.103-alpine3.13-amd64 AS dotnet-build-env
|
FROM mcr.microsoft.com/dotnet/sdk:5.0.103-alpine3.13-amd64 AS dotnet-build-env
|
||||||
|
|
@ -14,25 +16,55 @@ FROM mcr.microsoft.com/dotnet/sdk:5.0.103-alpine3.13-amd64 AS dotnet-build-env
|
||||||
RUN mkdir /appserver
|
RUN mkdir /appserver
|
||||||
WORKDIR /appserver
|
WORKDIR /appserver
|
||||||
|
|
||||||
COPY server/. .
|
RUN \
|
||||||
|
git clone https://github.com/rogerfar/rdt-client.git . && \
|
||||||
RUN if [ "$BUILDPLATFORM" = "arm/v7" ] ; then dotnet restore -r linux-arm RdtClient.sln ; else dotnet restore RdtClient.sln ; fi
|
cd server && \
|
||||||
RUN if [ "$BUILDPLATFORM" = "arm/v7" ] ; then dotnet publish -r linux-arm -c Release -o out ; else dotnet publish -c Release -o out ; fi
|
if [ "$BUILDPLATFORM" = "arm/v7" ] ; then dotnet restore -r linux-arm RdtClient.sln ; else dotnet restore RdtClient.sln ; fi && \
|
||||||
|
if [ "$BUILDPLATFORM" = "arm/v7" ] ; then dotnet publish -r linux-arm -c Release -o out ; else dotnet publish -c Release -o out ; fi
|
||||||
|
|
||||||
# Stage 3 - Build runtime image
|
# Stage 3 - Build runtime image
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0.3-buster-slim AS base
|
FROM ghcr.io/linuxserver/baseimage-mono:LTS
|
||||||
|
|
||||||
RUN addgroup --quiet --gid 1000 dotnet
|
# set version label
|
||||||
RUN adduser --system --uid 1000 --group dotnet --shell /bin/sh
|
ARG BUILD_DATE
|
||||||
|
ARG VERSION
|
||||||
|
ARG RDTCLIENT_VERSION
|
||||||
|
LABEL build_version="Linuxserver.io extended version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
|
LABEL maintainer="ravensorb"
|
||||||
|
|
||||||
RUN mkdir /app
|
# set environment variables
|
||||||
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
ENV XDG_CONFIG_HOME="/config/xdg"
|
||||||
|
ENV RDTCLIENT_BRANCH="main"
|
||||||
|
|
||||||
|
RUN mkdir /app || true && mkdir -p /data/downloads /data/db || true && \
|
||||||
|
echo "**** Updating package information ****" && \
|
||||||
|
apt update -y -qq && \
|
||||||
|
apt install -y -qq wget && \
|
||||||
|
echo "**** Installing dotnet ****" && \
|
||||||
|
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb && \
|
||||||
|
dpkg -i packages-microsoft-prod.deb 2> /dev/null && \
|
||||||
|
rm packages-microsoft-prod.deb && \
|
||||||
|
apt update -y -qq && \
|
||||||
|
apt install -y -qq apt-transport-https dotnet-runtime-5.0 aspnetcore-runtime-5.0 && \
|
||||||
|
echo "**** Cleaning image ****" && \
|
||||||
|
apt-get -y -qq -o Dpkg::Use-Pty=0 clean && apt-get -y -qq -o Dpkg::Use-Pty=0 purge && \
|
||||||
|
echo "**** Setting permissions ****" && \
|
||||||
|
chown -R abc:abc /data && \
|
||||||
|
rm -rf \
|
||||||
|
/tmp/* \
|
||||||
|
/var/lib/apt/lists/* \
|
||||||
|
/var/tmp/* || true
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=dotnet-build-env /appserver/out .
|
COPY --from=dotnet-build-env /appserver/server/out .
|
||||||
COPY --from=node-build-env /appclient/out ./wwwroot
|
COPY --from=node-build-env /appclient/client/out ./wwwroot
|
||||||
|
|
||||||
RUN chown -R dotnet:dotnet /app
|
WORKDIR /data
|
||||||
|
|
||||||
USER 1000
|
# add local files
|
||||||
|
COPY src/root/ /
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "RdtClient.Web.dll"]
|
# ports and volumes
|
||||||
|
EXPOSE 6500
|
||||||
|
VOLUME ["/config", "/data" ]
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
<a class="navbar-item"> Profile </a>
|
<a class="navbar-item"> Profile </a>
|
||||||
<a class="navbar-item" (click)="logout()"> Logout </a>
|
<a class="navbar-item" (click)="logout()"> Logout </a>
|
||||||
<hr class="navbar-divider" />
|
<hr class="navbar-divider" />
|
||||||
<div class="navbar-item">Version 1.7.1</div>
|
<div class="navbar-item">Version 1.7.2</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "rdt-client",
|
"name": "rdt-client",
|
||||||
"version": "1.7.1",
|
"version": "1.7.2",
|
||||||
"description": "This is a web interface to manage your torrents on Real-Debrid.",
|
"description": "This is a web interface to manage your torrents on Real-Debrid.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using RdtClient.Data.Enums;
|
||||||
using RdtClient.Service.Models.QBittorrent;
|
using RdtClient.Service.Models.QBittorrent;
|
||||||
using RdtClient.Service.Models.QBittorrent.QuickType;
|
using RdtClient.Service.Models.QBittorrent.QuickType;
|
||||||
|
|
||||||
|
|
@ -239,7 +240,7 @@ namespace RdtClient.Service.Services
|
||||||
downloadPath = Path.Combine(downloadPath, torrent.Category);
|
downloadPath = Path.Combine(downloadPath, torrent.Category);
|
||||||
}
|
}
|
||||||
|
|
||||||
var torrentPath = Path.Combine(downloadPath, torrent.RdName);
|
var torrentPath = Path.Combine(downloadPath, torrent.RdName) + Path.DirectorySeparatorChar;
|
||||||
|
|
||||||
var bytesDone = torrent.RdProgress;
|
var bytesDone = torrent.RdProgress;
|
||||||
var bytesTotal = torrent.RdSize;
|
var bytesTotal = torrent.RdSize;
|
||||||
|
|
@ -315,6 +316,11 @@ namespace RdtClient.Service.Services
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (torrent.RdStatus == RealDebridStatus.Error)
|
||||||
|
{
|
||||||
|
result.State = "error";
|
||||||
|
}
|
||||||
|
|
||||||
results.Add(result);
|
results.Add(result);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
||||||
<Version>1.7.1</Version>
|
<Version>1.7.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue