Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/vueify display show rebased #6709

Merged
merged 180 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
75cd567
Added episode absolute numbering to series to_json.
p0psicles Feb 17, 2019
82cc22f
Added hastbn, hasnfo to episode to_json.
p0psicles Feb 17, 2019
8c9dc91
Adapted show-header to new apiv2 show.seasons.episodes structure.
p0psicles Feb 17, 2019
8a21656
Adapted show.vue for the vueification of displayShow.mako.
p0psicles Feb 17, 2019
436172a
Updated modules/defaults.js with absoluteNumbering arrays.
p0psicles Feb 17, 2019
a6c0c18
Added class archived.
p0psicles Feb 17, 2019
c2d263c
Removed mako template variables from route.
p0psicles Feb 17, 2019
6ac467f
Yarn dev build
p0psicles Feb 17, 2019
99286e8
Revert code thats used for submenu.
p0psicles Feb 19, 2019
31d84f0
Fix xem icon showing for non-xem shows.
p0psicles Feb 19, 2019
ab59d02
Move hasTbn and hasNfo under data['content']
p0psicles Feb 19, 2019
0d2b5a4
Move back arror functions
p0psicles Feb 19, 2019
12be36d
Implemented season scene exceptions in vue.
p0psicles Feb 19, 2019
a0abb13
Moved displayShow.mako to display-show.vue. (can be renamed to show.v…
p0psicles Feb 22, 2019
237aec1
Reverted the style css changes.
p0psicles Feb 22, 2019
08c7b80
Add display-show.vue / episode-row.vue
p0psicles Feb 22, 2019
d4309c8
Added episode-table component.
p0psicles Feb 24, 2019
c94668a
Improved table displays for season and episodes.
p0psicles Mar 2, 2019
66d9de5
Set uniqueKey.
p0psicles Mar 5, 2019
90dc8ba
Create basic example using vue-good-table.
p0psicles Mar 10, 2019
1f7cf1c
Added sorting
p0psicles Mar 10, 2019
29a26fe
Implement rest of the columns.
p0psicles Mar 11, 2019
c9fa0bd
Added backstretch component
p0psicles Mar 11, 2019
0061b90
Added checkbox column
p0psicles Mar 13, 2019
92d8eba
Updated css
p0psicles Mar 16, 2019
1cec010
Yarn dev
p0psicles Mar 16, 2019
007b672
Added monkeypatched vue-good-table code.
p0psicles Mar 26, 2019
d56c167
Added select all checkbox by season.
p0psicles Mar 26, 2019
711bc89
Added spacer in between seasons.
p0psicles Mar 26, 2019
c8b2d4e
Add manual subtitles search, using dynamic programmatically components.
p0psicles Apr 7, 2019
d96ee23
Added forcedSearch.
p0psicles Apr 9, 2019
8ec1a83
Improved the manual subtitle search table.
p0psicles Apr 11, 2019
89988a0
Added background to loading spinner
p0psicles Apr 11, 2019
985cca3
Add changing status + quality.
p0psicles Apr 13, 2019
3e68eb3
Add feature to toggle (some) of the show-header checkmarks.
p0psicles Apr 13, 2019
59e44cd
tooltip (qTip) fixes.
p0psicles Apr 14, 2019
1bb5171
* Added api/v2 search endpoint.
p0psicles Apr 19, 2019
55742ec
Use apiv2 search endpoint, for backlog search.
p0psicles Apr 19, 2019
0f402e6
Fix display of episode status overview.
p0psicles Apr 22, 2019
c967990
Added modal for querying the user to start a backlog search. When epi…
p0psicles Apr 22, 2019
4c1491c
Add footer row to summarize the total size of the season in MB's.
p0psicles Apr 27, 2019
965f7c0
Fix the setSceneNumbering feature.
p0psicles Apr 27, 2019
350bf1a
Fix filesize representation
p0psicles Apr 27, 2019
96fece0
Added pagination.
p0psicles Apr 30, 2019
13fab3f
Remove search_queue_scheduler. As this doesn't work right now.
p0psicles Apr 30, 2019
85f24b5
Remove hide episodes / season button.
p0psicles Apr 30, 2019
a9a2949
Add queue_time and start_time, to get more info on when a specific qu…
p0psicles May 1, 2019
7deaa39
Replace ForcedSearchQueueItem with BacklogQueueItem.
p0psicles May 1, 2019
c1acef5
Fixed the modal for double checking if a user wants to mark the exist…
p0psicles May 1, 2019
d0aadbe
Add new util module specifically for including jquery.
p0psicles May 1, 2019
798e155
Add episode slug to episode to_json method.
p0psicles May 3, 2019
1a1c48a
Use status for the table's status column. As opposed to overview status.
p0psicles May 3, 2019
13a34dc
Use slug from api's episode object.
p0psicles May 3, 2019
5f39544
Fixed scene_numbering
p0psicles May 4, 2019
e642465
Fix blue color on text on preferred button.
p0psicles May 4, 2019
a40baf5
Use episode slug, in stead of calculating it in frondend.
p0psicles May 4, 2019
dacd7a5
Fix sorting on scene and sceneAbsolute fields.
p0psicles May 4, 2019
9961d22
Fix css on pagination div on smaller display.
p0psicles May 4, 2019
eb8bdec
Disable fanart, when is set to disabled.
p0psicles May 4, 2019
a6f05c9
Remove option DISPLAY_ALL_SEASONS
p0psicles May 4, 2019
1e00b1a
use config.datePreset and config.timePreset for displaying date/times.
p0psicles May 5, 2019
0cce54c
Fix manual subtitle search result, subtitle-name color.
p0psicles May 5, 2019
e046879
Fix exception when using manual search, and not getting results.
p0psicles May 5, 2019
fcc2529
Reflow layout on show-header.vue when show content changes.
p0psicles May 6, 2019
2cf0da3
Removed unused function
p0psicles May 6, 2019
ebce5a7
Improve handling of getSceneNumbering and getAbsoluteNumbering.
p0psicles May 6, 2019
4fe656c
Store column selection in cookies.
p0psicles May 6, 2019
b13c2ed
Improved plot-info position
p0psicles May 6, 2019
a311bfd
Added feature to change the episode watched property.
p0psicles May 13, 2019
6d1d10d
Removed buttons for selectEpisodesClicked.
p0psicles May 13, 2019
40fea55
Added coloring for snatch-selection.
p0psicles May 13, 2019
74199a5
Add watched.png / notwatched.png icons.
p0psicles May 15, 2019
c6b819c
Store pagination (perPage) option in cookie
p0psicles May 15, 2019
6d74a4d
Bumping the axios timeout a little, for calls that can take long.
p0psicles May 15, 2019
1f9f6b1
Moved the function effectiveIgnored and effectiveRequired to store/co…
p0psicles May 15, 2019
7b920a2
Disable pagination cookies for now.
p0psicles May 15, 2019
f9b8dfe
Fix setStatus.
p0psicles May 16, 2019
8b0f6cc
series.py: to_json method. Moved episode related data returned by the…
p0psicles May 18, 2019
fecee34
Check for the jquery selector.
p0psicles May 18, 2019
bbb55b2
Changed .babelrc to allow for the usage of async/await.
p0psicles May 18, 2019
f60ceff
Implement mutation of ADD_SHOW_EPISODE.
p0psicles May 18, 2019
98eacaf
use the new mutation ADD_SHOW_EPISODE to get episodes per season.
p0psicles May 18, 2019
6ed7974
Fix backlog search on changing status of episodes to wanted.
p0psicles May 18, 2019
a0fd925
Get seasons by default in reverse order. So we can present the newest…
p0psicles May 18, 2019
74c711d
Get episodes (for specific season), after patching fields.
p0psicles May 18, 2019
790e5bf
Refere to vue-good-table in p0psicles github fork.
p0psicles May 19, 2019
a5a2c48
eslinting
p0psicles May 22, 2019
defcab9
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles May 22, 2019
c0e5a30
yarn dev, after rebase from develop.
p0psicles May 22, 2019
c3b4816
Changed api method names.
p0psicles May 22, 2019
8aaa48d
Fixed bug introduced after recent eslinting.
p0psicles May 22, 2019
a4ad4b8
Remove old components
p0psicles May 22, 2019
b6e58ad
* Added api/v2 search endpoint.
p0psicles Apr 19, 2019
cc8111d
Removed the SearchHandler changes, as that's done in PR #6716
p0psicles May 25, 2019
e7154d5
Revert ep_obj._status to ep_obj.status
p0psicles May 25, 2019
a2cc5b9
Remove the old FailedSearchQueueItem class.
p0psicles May 25, 2019
22df811
Fix import order.
p0psicles May 25, 2019
48c49de
Replace ForcedSearchQueueItem in api\v1\core.py
p0psicles May 25, 2019
850ece3
Update subtitle-search.vue component. As per PR6727
p0psicles Jun 1, 2019
d489722
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles Jun 1, 2019
096e3a7
Fixed rebase conflicts.
p0psicles Jun 1, 2019
a0d4a63
Python rebase conflict fixing
p0psicles Jun 1, 2019
f653fd1
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles Jun 3, 2019
14983af
Fixed merge conflicts.
p0psicles Jun 3, 2019
da128d2
Fix default select status and select quality.
p0psicles Jun 3, 2019
699739c
Fixed subtitle-flag styling.
p0psicles Jun 3, 2019
6c1f623
Create an array with objects, to display the show/hide statusoverview.
p0psicles Jun 4, 2019
3ec57ab
Filter the episodes based on the status overview selected in show-hea…
p0psicles Jun 4, 2019
277e760
Added getOvervewStatus, for filtering the episodes.
p0psicles Jun 4, 2019
38ae608
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles Jun 8, 2019
c25ce00
Remove unused Tooltip component.
p0psicles Jun 11, 2019
086cea8
Update code to use date-fns beta 2.x.
p0psicles Jun 11, 2019
5836d76
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles Jun 11, 2019
6e59dfc
Fixed rebase conflicts.
p0psicles Jun 11, 2019
6c8fbee
Add comments
p0psicles Jun 16, 2019
d92277d
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles Jun 30, 2019
dd3e7bc
eslint --fix
p0psicles Jun 30, 2019
87a38ff
rebundle
p0psicles Jun 30, 2019
02f0fc9
Revert changes to home/setStatus.
p0psicles Jun 30, 2019
fb18776
Merge branch 'develop' into feature/vueify-display-show-rebased
p0psicles Jul 21, 2019
d2bd818
Dev bundle after upmerge
p0psicles Jul 21, 2019
8bd3148
Merge branch 'develop' into feature/remove-forced-search
p0psicles Jul 21, 2019
f0dea9d
Fix loading displayShow using python3 when app.DOWNLOAD_URL is used.
p0psicles Aug 11, 2019
c562beb
Merge branch 'develop' into feature/remove-forced-search
p0psicles Aug 16, 2019
1c979d4
Merge remote-tracking branch 'remotes/origin/develop' into feature/re…
p0psicles Aug 16, 2019
f709f8b
Update server/api/v2/search.py after upmerge from develop.
p0psicles Aug 16, 2019
8876565
Removed unused import
p0psicles Aug 17, 2019
8554eaa
Fixed doc
p0psicles Aug 17, 2019
7ebe7e9
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles Aug 17, 2019
2f9c892
Merge remote-tracking branch 'remotes/origin/feature/remove-forced-se…
p0psicles Aug 18, 2019
8f1ffe2
Fixed select boxes. So they will display a default value.
p0psicles Aug 19, 2019
350bf52
Added vue-cookies in favor of vue-cookie, as it support es2015 module…
p0psicles Aug 19, 2019
7835728
Fixed indent.
p0psicles Aug 19, 2019
73357b6
Added vue-cookies and vue-js-modal to global-vue-shim.js
p0psicles Aug 19, 2019
4ea4865
Fixed sceneAbsolute numbering when an anime is used with xem numbering.
p0psicles Aug 19, 2019
eb33920
Vue dev bundle
p0psicles Aug 19, 2019
5f03740
Remove show.vue and references. As it's not used anymore.
p0psicles Aug 19, 2019
733a575
Merge remote-tracking branch 'remotes/origin/develop' into feature/vu…
p0psicles Sep 7, 2019
6ed753f
yarn dev
p0psicles Sep 7, 2019
ffbb34d
Improve handling of the max pagination rows.
p0psicles Sep 8, 2019
84d534e
Cleanup the get_episodes search information return value.
p0psicles Sep 9, 2019
9b3db10
Fix: add forced BacklogQueueItem to the SEARCH_HISTORY fifo queue.
p0psicles Sep 9, 2019
0b8921c
Add slug attribute to the Episode class.
p0psicles Sep 9, 2019
3bf61fd
Use rename core/jquery instead of jquery-wrappers.js.
p0psicles Sep 9, 2019
2914efe
Use ../utils/jquery not jquery-wrapper.js.
p0psicles Sep 9, 2019
f298521
Remove some eslint warnings.
p0psicles Sep 9, 2019
0eb16c7
Updat updateImages, because this is changed in backend.
p0psicles Sep 9, 2019
e0e7d87
dev bundle
p0psicles Sep 9, 2019
6f5aeed
Episodes identifier can be the absolute_number for anime. This value …
p0psicles Sep 10, 2019
6cdd9b8
Fix display-show.vue: getting episodes from apiv2.
p0psicles Sep 11, 2019
01da7a3
Fix self.manual_search reference.
p0psicles Sep 11, 2019
a057e61
Fix yarn lint and yarn css-lint errors.
p0psicles Sep 15, 2019
4aa1955
Add v-tooltip.
p0psicles Sep 16, 2019
c721db8
Fix plot-info box-shadow.
p0psicles Sep 16, 2019
743bdfd
Fixed the background color of the tooltip arrow.
p0psicles Sep 22, 2019
adaffab
Updated plot-info.vue
p0psicles Sep 22, 2019
75897ea
Fix eslint warnings
p0psicles Sep 22, 2019
031828e
Fix css styling.
p0psicles Sep 22, 2019
e270ffe
Fix flake errors.
p0psicles Sep 22, 2019
1f68ce4
Fix show/hide display specials button.
p0psicles Sep 22, 2019
7acdffc
lint warning
p0psicles Sep 22, 2019
58a5d0d
Added fuzzy dating for the airdate field.
p0psicles Oct 7, 2019
3f98ea5
Fix center subtitle flags
p0psicles Oct 7, 2019
129d7f2
Implement redownload subtitle, when clicking on the flag.
p0psicles Oct 7, 2019
4c20780
Merge branch 'develop' into feature/vueify-display-show-rebased
medariox Oct 7, 2019
c727ba6
Add missing semicolon, yarn dev
medariox Oct 7, 2019
97969f5
Remove comments
p0psicles Oct 8, 2019
80d240f
Don't parse date if unknown.
p0psicles Oct 8, 2019
56c8c17
Switch to table layout fixed
p0psicles Oct 8, 2019
999e09d
fix manual search returning with "finished" too soon.
p0psicles Oct 10, 2019
0654c7a
Really fix manual search returning with "finished" too soon.
p0psicles Oct 10, 2019
e480d3c
Fix python warning when changing episode status without quality or visa.
p0psicles Oct 10, 2019
f9a3341
Show filename instead of the full path.
p0psicles Oct 12, 2019
f0c7f70
Added shorter labels for absolute number and scene absolute.
p0psicles Oct 12, 2019
760e7e8
Moved the filter columns UI to vue-good-table.
p0psicles Oct 15, 2019
60ec155
Reference to vue-good-table including commit hash.
p0psicles Oct 16, 2019
b090c57
Center scene label.
p0psicles Oct 16, 2019
b77b21e
Remove duplicate css selector
p0psicles Oct 16, 2019
2bbcbed
Added changelog
p0psicles Oct 16, 2019
a562a0a
Merge branch 'develop' into feature/vueify-display-show-rebased
medariox Oct 16, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@

#### Improvements
- Shows without any episodes can now be added ([#6977](https://github.com/pymedusa/Medusa/pull/6977))
- Vueified displayShow ([#6709](https://github.com/pymedusa/Medusa/pull/6709))
- New subtitles search UI component
- Direct toggle of show options on displayShow page like the checks for Subtitles, Season Folders, Paused, etc.
- Mark episodes as "watched"
- Added pagination
- Added search field, that searches columns like Title, File and Episode number

#### Fixes
- Fixed AnimeBytes daily search, for multi-ep results ([#7190](https://github.com/pymedusa/Medusa/pull/7190))
- Fixed rare UnicodeDecodeError when parsing titles with Python 2.7 ([#7192](https://github.com/pymedusa/Medusa/pull/7192))
- Fixed displayShow loading of large shows with many seasons e.g. daily shows ([#6977](https://github.com/pymedusa/Medusa/pull/6977))
- Fixed torrent checker for client Transmission running on python 3 ([#7250](https://github.com/pymedusa/Medusa/pull/7250))
- Fixed provider beyond-hd due to layout changes ([#7250](https://github.com/pymedusa/Medusa/pull/7250))
- Fixed provider bj-share due to layout changes ([#7250](https://github.com/pymedusa/Medusa/pull/7250))
Expand Down
2 changes: 0 additions & 2 deletions medusa/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,6 @@ def initialize(self, console_logging=True):
app.TIMEZONE_DISPLAY = check_setting_str(app.CFG, 'GUI', 'timezone_display', 'local')
app.POSTER_SORTBY = check_setting_str(app.CFG, 'GUI', 'poster_sortby', 'name')
app.POSTER_SORTDIR = check_setting_int(app.CFG, 'GUI', 'poster_sortdir', 1)
app.DISPLAY_ALL_SEASONS = bool(check_setting_int(app.CFG, 'General', 'display_all_seasons', 1))
app.RECENTLY_DELETED = set()
app.RELEASES_IN_PP = []
app.GIT_REMOTE_BRANCHES = []
Expand Down Expand Up @@ -1602,7 +1601,6 @@ def save_config():
new_config['General']['no_restart'] = int(app.NO_RESTART)
new_config['General']['developer'] = int(app.DEVELOPER)
new_config['General']['python_version'] = app.PYTHON_VERSION
new_config['General']['display_all_seasons'] = int(app.DISPLAY_ALL_SEASONS)
new_config['General']['news_last_read'] = app.NEWS_LAST_READ
new_config['General']['broken_providers'] = helpers.get_broken_providers() or app.BROKEN_PROVIDERS
new_config['General']['selected_root'] = int(app.SELECTED_ROOT)
Expand Down
1 change: 0 additions & 1 deletion medusa/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def __init__(self):
self.SORT_ARTICLE = False
self.DEBUG = False
self.DBDEBUG = False
self.DISPLAY_ALL_SEASONS = True
self.DEFAULT_PAGE = 'home'
self.SEEDERS_LEECHERS_IN_NOTIFY = True
self.SHOW_LIST_ORDER = ['Anime', 'Series']
Expand Down
4 changes: 2 additions & 2 deletions medusa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,8 @@ class Overview(object):
overviewStrings = {
SKIPPED: 'skipped',
WANTED: 'wanted',
QUAL: 'qual',
GOOD: 'good',
QUAL: 'allowed',
GOOD: 'preferred',
UNAIRED: 'unaired',
SNATCHED: 'snatched',
# we can give these a different class later, otherwise
Expand Down
46 changes: 27 additions & 19 deletions medusa/search/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,31 @@ def get_episodes(search_thread, searchstatus):
for ep_obj in search_thread.segment:
ep = series_obj.get_episode(ep_obj.season, ep_obj.episode)
results.append({
'indexer_id': series_obj.indexer,
'series_id': series_obj.series_id,
'episode': ep.episode,
'episodeindexerid': ep.indexerid,
'season': ep.season,
'searchstatus': searchstatus,
'status': statusStrings[ep.status],
# TODO: `quality_name` and `quality_style` should both be removed
# when converting forced/manual episode search to Vue (use QualityPill component directly)
'quality_name': Quality.qualityStrings[ep.quality],
'quality_style': Quality.quality_keys.get(ep.quality) or Quality.quality_keys[Quality.UNKNOWN],
'overview': Overview.overviewStrings[series_obj.get_overview(
ep.status, ep.quality,
manually_searched=ep.manually_searched
)],
'queuetime': search_thread.queue_time.isoformat(),
'starttime': search_thread.start_time.isoformat() if search_thread.start_time else None,
'show': {
'indexer': series_obj.indexer,
'series_id': series_obj.series_id,
'slug': series_obj.slug
},
'episode': {
'episode': ep.episode,
'season': ep.season,
'slug': ep.slug,
'indexerid': ep.indexerid,
'status': statusStrings[ep.status],
# TODO: `quality_name` and `quality_style` should both be removed
# when converting forced/manual episode search to Vue (use QualityPill component directly)
'quality_name': Quality.qualityStrings[ep.quality],
'quality_style': Quality.quality_keys.get(ep.quality) or Quality.quality_keys[Quality.UNKNOWN],
'overview': Overview.overviewStrings[series_obj.get_overview(
ep.status, ep.quality,
manually_searched=ep.manually_searched
)]
},
'search': {
'status': searchstatus,
'queuetime': search_thread.queue_time.isoformat(),
'starttime': search_thread.start_time.isoformat() if search_thread.start_time else None
}
})

return results
Expand Down Expand Up @@ -163,11 +171,11 @@ def collect_episodes_from_search_thread(series_obj):
continue

if isinstance(search_thread, ManualSearchQueueItem):
if not [x for x in episodes if x['episodeindexerid'] in [search.indexerid for search in search_thread.segment]]:
if not [x for x in episodes if x['episode']['indexerid'] in [search.indexerid for search in search_thread.segment]]:
episodes += get_episodes(search_thread, searchstatus)
else:
# These are only Failed Downloads/Retry search thread items.. lets loop through the segment/episodes
if not [i for i, j in zip(search_thread.segment, episodes) if i.indexerid == j['episodeindexerid']]:
if not [i for i, j in zip(search_thread.segment, episodes) if i.indexerid == j['episode']['indexerid']]:
episodes += get_episodes(search_thread, searchstatus)

return episodes
Expand Down
9 changes: 6 additions & 3 deletions medusa/search/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def force_daily(self):


class ForcedSearchQueue(generic_queue.GenericQueue):
"""Search Queueu used for Manual, Failed Search."""
"""Search Queue used for Manual, (forced) Backlog and Failed Search."""

def __init__(self):
"""Initialize ForcedSearch Queue."""
Expand Down Expand Up @@ -346,7 +346,7 @@ def __init__(self, show, segment, manual_search_type='episode'):
self.manual_search_type = manual_search_type

def run(self):
"""Run forced search thread."""
"""Run manual search thread."""
generic_queue.QueueItem.run(self)
self.started = True

Expand Down Expand Up @@ -551,6 +551,9 @@ def run(self):
self.success = False
log.debug(traceback.format_exc())

# Keep a list with the 100 last executed searches
fifo(SEARCH_HISTORY, self, SEARCH_HISTORY_SIZE)

if self.success is None:
self.success = False

Expand Down Expand Up @@ -648,7 +651,7 @@ def run(self):
self.success = False
log.info(traceback.format_exc())

# ## Keep a list with the 100 last executed searches
# Keep a list with the 100 last executed searches
fifo(SEARCH_HISTORY, self, SEARCH_HISTORY_SIZE)

if self.success is None:
Expand Down
3 changes: 1 addition & 2 deletions medusa/server/api/v2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class ConfigHandler(BaseRequestHandler):
'layout.history': EnumField(app, 'HISTORY_LAYOUT', ('compact', 'detailed'), default_value='detailed'),
'layout.home': EnumField(app, 'HOME_LAYOUT', ('poster', 'small', 'banner', 'simple', 'coverflow'),
default_value='poster'),
'layout.show.allSeasons': BooleanField(app, 'DISPLAY_ALL_SEASONS'),
'layout.show.specials': BooleanField(app, 'DISPLAY_SHOW_SPECIALS'),
'layout.show.showListOrder': ListField(app, 'SHOW_LIST_ORDER'),
'theme.name': StringField(app, 'THEME_NAME', setter=theme_name_setter),
Expand Down Expand Up @@ -558,7 +557,7 @@ def data_main():
section_data['layout']['history'] = app.HISTORY_LAYOUT
section_data['layout']['home'] = app.HOME_LAYOUT
section_data['layout']['show'] = {}
section_data['layout']['show']['allSeasons'] = bool(app.DISPLAY_ALL_SEASONS)

section_data['layout']['show']['specials'] = bool(app.DISPLAY_SHOW_SPECIALS)
section_data['layout']['show']['showListOrder'] = app.SHOW_LIST_ORDER

Expand Down
1 change: 1 addition & 0 deletions medusa/server/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def clean_url_path(*args, **kwargs):
def get_apiv2_handlers(base):
"""Return api v2 handlers."""
return [

# Order: Most specific to most generic

# /api/v2/search
Expand Down
3 changes: 1 addition & 2 deletions medusa/server/web/config/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def saveGeneral(self, log_dir=None, log_nr=5, log_size=1, web_port=None, notify_
fuzzy_dating=None, trim_zero=None, date_preset=None, date_preset_na=None, time_preset=None,
indexer_timeout=None, download_url=None, rootDir=None, theme_name=None, default_page=None,
git_reset=None, git_reset_branches=None, git_auth_type=0, git_username=None, git_password=None, git_token=None,
display_all_seasons=None, subliminal_log=None, privacy_level='normal', fanart_background=None, fanart_background_opacity=None,
subliminal_log=None, privacy_level='normal', fanart_background=None, fanart_background_opacity=None,
dbdebug=None, fallback_plex_enable=1, fallback_plex_notifications=1, fallback_plex_timeout=3, web_root=None, ssl_ca_bundle=None):

results = []
Expand Down Expand Up @@ -119,7 +119,6 @@ def saveGeneral(self, log_dir=None, log_nr=5, log_size=1, web_port=None, notify_
app.SSL_CA_BUNDLE = ssl_ca_bundle
# app.LOG_DIR is set in config.change_LOG_DIR()
app.COMING_EPS_MISSED_RANGE = int(coming_eps_missed_range)
app.DISPLAY_ALL_SEASONS = config.checkbox_to_value(display_all_seasons)
app.NOTIFY_ON_LOGIN = config.checkbox_to_value(notify_on_login)
app.WEB_PORT = int(web_port)
app.WEB_IPV6 = config.checkbox_to_value(web_ipv6)
Expand Down
Loading