Merge branch 'development' of https://github.com/morpheus65535/bazarr into development

pull/1311/head^2
morpheus65535 4 years ago
commit eb899187f7

@ -7,6 +7,7 @@ jobs:
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
UI_DIRECTORY: ./frontend
ASSET_DIRECTORY: ./__builds__
FETCH_DEPTH: 15 # Should be enough
steps:
- name: Validate branch
@ -49,5 +50,11 @@ jobs:
run: npm run build && git add .
working-directory: ${{ env.UI_DIRECTORY }}
- name: Save UI to Asset
run: |
mkdir -p ../.${{ env.ASSET_DIRECTORY }} &&
zip -r ../.${{ env.ASSET_DIRECTORY }}/ui.zip ./ -x '*.map' -b $(mktemp -d)
working-directory: ${{ env.UI_DIRECTORY }}/build
- name: Create Release
run: release-it --ci --increment prerelease --preRelease=beta

2
.gitignore vendored

@ -11,6 +11,8 @@ bazarr.pid
/bin
/.vscode
# CI
/__builds__
/package.json
/package-lock.json

@ -1,7 +1,8 @@
{
"git": {
"requireCleanWorkingDir": false,
"changelog": "auto-changelog --stdout"
"changelog": "auto-changelog --stdout",
"tagName": "v${version}"
},
"github": {
"release": true,

@ -70,7 +70,14 @@ class GreekSubsProvider(Provider):
search_link = self.server_url + 'en/view/' + imdb_id
r = self.session.get(search_link, timeout=30)
r.raise_for_status()
# 404 is returned if the imdb_id was not found
if r.status_code != 404:
r.raise_for_status()
if r.status_code != 200:
logger.debug('No subtitles found')
return subtitles
soup_page = ParserBeautifulSoup(r.content.decode('utf-8', 'ignore'), ['html.parser'])

Loading…
Cancel
Save