Skip to content

Commit

Permalink
Merge pull request #11694 from pymedusa/release/release-1.0.21
Browse files Browse the repository at this point in the history
Release/release 1.0.21
  • Loading branch information
medariox authored Apr 3, 2024
2 parents 6a0becf + a18745b commit 34a67cf
Show file tree
Hide file tree
Showing 12 changed files with 3,279 additions and 12 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 1.0.21 (03-04-2024)

#### Improvements
- Add testing for providers requiring authorization (Thanks to @k0mmsussert0d)
- Add many network timezones (Thanks to @YogSottot)

#### Fixes
- Fix file browser not displaying correctly

-----

## 1.0.20 (27-03-2024)

#### Improvements
Expand Down
2 changes: 1 addition & 1 deletion medusa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
log.logger.addHandler(logging.NullHandler())

INSTANCE_ID = text_type(uuid.uuid1())
VERSION = '1.0.20'
VERSION = '1.0.21'

USER_AGENT = 'Medusa/{version} ({system}; {release}; {instance})'.format(
version=VERSION, system=platform.system(), release=platform.release(),
Expand Down
9 changes: 7 additions & 2 deletions tests/providers/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@


def get_providers():
from medusa.providers.torrent import (anidex, btdb, limetorrents, nyaa,
from medusa.providers.torrent import (anidex, animebytes, btdb, limetorrents, nyaa,
rarbg, shanaproject, thepiratebay,
tokyotoshokan, torrentz2, zooqle)
from medusa.providers.nzb import anizb, binsearch

return (anidex, btdb, limetorrents, nyaa, rarbg, shanaproject,
return (anidex, animebytes, btdb, limetorrents, nyaa, rarbg, shanaproject,
thepiratebay, tokyotoshokan, torrentz2, zooqle, anizb, binsearch)


Expand All @@ -40,6 +40,11 @@ def get_provider_data():
# Update provider with test data
provider.data.update(test_data)

# Configure provider by overriding instance attributes
if test_data.get("_meta", {}).get("attr"):
for k, v in test_data["_meta"]["attr"].items():
setattr(provider.klass, k, v)

return providers


Expand Down
7 changes: 6 additions & 1 deletion tests/providers/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ def search(search_type, provider):
cassette_filename = '{0}_{1}.yaml'.format(provider.name, search_type)
cassette_path = os.path.join(__location__, provider.type, provider.name,
cassette_filename)
with vcr.use_cassette(cassette_path, record_mode=record_mode):
if provider.data.get("_meta", {}).get("vcr"):
vcr_config = provider.data["_meta"]["vcr"]
else:
vcr_config = {}

with vcr.use_cassette(cassette_path, record_mode=record_mode, **vcr_config):
actual = provider.klass.search(test_case['search_strings'])

# Check if we got any results
Expand Down
877 changes: 877 additions & 0 deletions tests/providers/torrent/animebytes/animebytes_backlog.yaml

Large diffs are not rendered by default.

2,322 changes: 2,322 additions & 0 deletions tests/providers/torrent/animebytes/animebytes_daily.yaml

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions tests/providers/torrent/animebytes/animebytes_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
_meta:
attr:
# fill parameters below to record new cassette
username:
passkey:
vcr:
filter_query_parameters:
- username
- torrent_pass

daily:
search_strings:
RSS: ['']
results:
- seeders: 5
pubdate: 2018-01-30 03:08:34
title: 'CODE GEASS: Lelouch of the Rebellion.S01E01-E25.Web.MKV.h264.1080p.AAC2.0-Erai-raws'
leechers: 0
link: 'https://animebytes.tv/torrent/345145/download/l40cx6g4sekgamtflpu83ij30r4fs6vo'
size: 23496333785
- seeders: 6
pubdate: 2019-08-08 16:48:33
title: 'CODE GEASS: Lelouch of the Rebellion.S01E01-E25.Web.MKV.h264.1080p.AC32.0-DragsterPS'
leechers: 0
link: 'https://animebytes.tv/torrent/420400/download/l40cx6g4sekgamtflpu83ij30r4fs6vo'
size: 22358845893
- seeders: 4
pubdate: 2022-05-30 17:10:39
title: 'CODE GEASS: Lelouch of the Rebellion.S01E01-E25.DVD9.ISO(R2Europe).16:9.720x480.AC32.0'
leechers: 0
link: 'https://animebytes.tv/torrent/991499/download/l40cx6g4sekgamtflpu83ij30r4fs6vo'
size: 36085825536

backlog:
search_strings:
Episode: ['Higurashi no Naku Koro Ni']
results:
- seeders: 5
pubdate: 2017-11-18 00:00:00
title: 'Higurashi no Naku Koro ni.S01E01-E26.DVD9.ISO(R1).16:9.720x480.AC32.0'
leechers: 0
link: 'https://animebytes.tv/torrent/10614/download/l40cx6g4sekgamtflpu83ij30r4fs6vo'
size: 37879440026
- seeders: 6
pubdate: 2017-11-18 00:00:00
title: 'Higurashi no Naku Koro ni.S01E01-E26.Web.MKV.h264.1080p.AC32.0-DragsterPS'
leechers: 0
link: 'https://animebytes.tv/torrent/419747/download/l40cx6g4sekgamtflpu83ij30r4fs6vo'
size: 23522776830
6 changes: 2 additions & 4 deletions themes-default/slim/src/components/helpers/file-browser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</div>
</div>

<div ref="fileBrowserDialog" class="fileBrowserDialog" style="display: none;" />
<div ref="fileBrowserDialog" class="fileBrowserDialog" />
<input ref="fileBrowserSearchBox" @keyup.enter="browse($event.target.value)" :value="currentPath" type="text" class="form-control" style="display: none;">
<ul ref="fileBrowserFileList" style="display: none;">
<ul ref="fileBrowserFileList">
<li v-for="file in files" :key="file.name" class="ui-state-default ui-corner-all">
<a @mouseover="toggleFolder(file, $event)" @mouseout="toggleFolder(file, $event)" @click="fileClicked(file)">
<span :class="'ui-icon ' + (file.isFile ? 'ui-icon-blank' : 'ui-icon-folder-collapsed')" /> {{ file.name }}
Expand Down Expand Up @@ -202,7 +202,6 @@ export default {
autoOpen: false
});
fileBrowserSearchBox.removeAttribute('style');
vm.fileBrowserDialog // This is a jQuery object
.append(fileBrowserSearchBox);
fileBrowser(fileBrowserSearchBox, true)
Expand Down Expand Up @@ -234,7 +233,6 @@ export default {
// Set lastPath so we can reset currentPath if we cancel dialog
vm.lastPath = vm.currentPath;
fileBrowserFileList.removeAttribute('style');
vm.fileBrowserDialog // This is a jQuery object
.append(fileBrowserFileList);
},
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/medusa-runtime.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/dark/assets/js/medusa-runtime.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/light/assets/js/medusa-runtime.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/light/assets/js/medusa-runtime.js.map

Large diffs are not rendered by default.

0 comments on commit 34a67cf

Please sign in to comment.