Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 67ec25b

Browse files
author
jxxghp
committed
build master
1 parent 4dd53cc commit 67ec25b

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

.github/workflows/build-windows.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ jobs:
8686
release_id: ${{ steps.create_release.outputs.id }}
8787
assets_path: |
8888
/home/runner/work/nas-tools/nas-tools/releases/
89-
#
90-
#- name: Send telegram message (release informations)
91-
# uses: appleboy/telegram-action@master
92-
# with:
93-
# to: ${{ secrets.TELEGRAM_TO }}
94-
# token: ${{ secrets.TELEGRAM_TOKEN }}
95-
# format: markdown
96-
# message: |
97-
# *v${{ env.app_version }}*
9889
99-
# ${{ github.event.commits[0].message }}
90+
- name: Send telegram message (release informations)
91+
uses: appleboy/telegram-action@master
92+
with:
93+
to: ${{ secrets.TELEGRAM_TO }}
94+
token: ${{ secrets.TELEGRAM_TOKEN }}
95+
format: markdown
96+
message: |
97+
*v${{ env.app_version }}*
98+
99+
${{ github.event.commits[0].message }}

.github/workflows/build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch:
44
push:
55
branches:
6-
- dev
6+
- master
77
paths:
88
- version.py
99
- .github/workflows/build.yml
@@ -51,4 +51,5 @@ jobs:
5151
linux/amd64
5252
push: true
5353
tags: |
54-
${{ secrets.DOCKER_USERNAME }}/nas-tools:${{ env.app_version }}-beta
54+
${{ secrets.DOCKER_USERNAME }}/nas-tools:latest
55+
${{ secrets.DOCKER_USERNAME }}/nas-tools:${{ env.app_version }}

docker/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN apk update \
1010
&& chmod +x /usr/bin/mc \
1111
&& pip install --upgrade pip setuptools wheel \
1212
&& pip install cython \
13-
&& pip install -r https://raw.githubusercontent.com/NAStool/nas-tools/dev/requirements.txt \
13+
&& pip install -r https://raw.githubusercontent.com/NAStool/nas-tools/master/requirements.txt \
1414
&& apk del libffi-dev \
1515
&& npm install pm2 -g \
1616
&& rm -rf /tmp/* /root/.cache /var/cache/apk/*
@@ -19,7 +19,7 @@ ENV LANG="C.UTF-8" \
1919
NASTOOL_CONFIG="/config/config.yaml" \
2020
NASTOOL_AUTO_UPDATE=true \
2121
NASTOOL_CN_UPDATE=true \
22-
NASTOOL_VERSION=dev \
22+
NASTOOL_VERSION=master \
2323
PS1="\u@\h:\w \$ " \
2424
REPO_URL="https://github.com/NAStool/nas-tools.git" \
2525
PYPI_MIRROR="https://pypi.tuna.tsinghua.edu.cn/simple" \
@@ -34,7 +34,7 @@ RUN python_ver=$(python3 -V | awk '{print $2}') \
3434
&& echo 'fs.inotify.max_user_watches=524288' >> /etc/sysctl.conf \
3535
&& echo 'fs.inotify.max_user_instances=524288' >> /etc/sysctl.conf \
3636
&& git config --global pull.ff only \
37-
&& git clone -b dev ${REPO_URL} ${WORKDIR} --depth=1 --recurse-submodule \
37+
&& git clone -b master ${REPO_URL} ${WORKDIR} --depth=1 --recurse-submodule \
3838
&& git config --global --add safe.directory ${WORKDIR} \
3939
&& chmod +x ${WORKDIR}/docker/entrypoint.sh
4040
EXPOSE 3000

docker/entrypoint.sh

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ if [ "${NASTOOL_AUTO_UPDATE}" = "true" ]; then
2828
git clean -dffx
2929
git fetch --depth 1 origin ${branch}
3030
git reset --hard origin/${branch}
31-
chmod +x docker/entrypoint.sh
3231

3332
if [ $? -eq 0 ]; then
3433
echo "更新成功..."

web/action.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3502,8 +3502,9 @@ def get_search_result(self, data=None):
35023502
season=int(filter_season.replace("S", "")) if filter_season else None
35033503
)
35043504
# One Piece S01-S21 E01-E1028 1999 1080p WEB-DL H.264 -@OPFansMaplesnow
3505-
except:
3506-
pass
3505+
except Exception as e:
3506+
print(str(e))
3507+
35073508
SearchResults[title_string] = {
35083509
"key": item.ID,
35093510
"title": item.TITLE,

0 commit comments

Comments
 (0)