Skip to content

Commit

Permalink
Merge pull request #8 from rix1337/dev
Browse files Browse the repository at this point in the history
Fix empty search response
  • Loading branch information
rix1337 authored Aug 19, 2024
2 parents 8a8c009 + a2a497d commit eaf87db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions quasarr/arr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re
import traceback
from base64 import urlsafe_b64decode
from datetime import datetime
from xml.etree import ElementTree as ET

import requests
Expand Down Expand Up @@ -336,6 +337,18 @@ def fake_api():

items = ""

if not releases:
items += f'''
<item>
<title>No releases found</title>
<link></link>
<pubDate>{datetime.now().strftime('%a, %d %b %Y %H:%M:%S %z')}</pubDate>
<enclosure url="_" length="0" type="application/x-nzb"/>
<guid></guid>
<comments></comments>
<description></description>
</item>'''

for release in releases:
release = release["details"]

Expand Down
2 changes: 1 addition & 1 deletion quasarr/providers/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def get_version():
return "0.1.1"
return "0.1.2"


def create_version_file():
Expand Down

0 comments on commit eaf87db

Please sign in to comment.