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

Pause and Ended Shows delay, xhtml_unescape #8507

Merged
merged 78 commits into from
Aug 8, 2023
Merged

Pause and Ended Shows delay, xhtml_unescape #8507

merged 78 commits into from
Aug 8, 2023

Conversation

BKSteve
Copy link
Collaborator

@BKSteve BKSteve commented Jul 20, 2023

Proposed changes in this pull request:

  • Put configuration of days delay to ended show below the hour to check show updates. Add some detail to notes.
  • Include paused with ended in delay usage
  • Fixed language identification code by .decode when adding show
  • minor logging text fixes to mediabrowser and tivo

BKSteve and others added 4 commits July 21, 2023 21:19
This sanitizes and decodes arguments to unicode that are passed in web requests to the server
Also, added logging for developers for all web routes when they have parameters defined in the method signature when they shouldn't be. Each method should explicitly use get_*_argument(s) methods to ensure passed data is safe and sanitized, devoid of control characters, injection safe, and formatted in the correct type. All route methods should only have `self` as a parameter, suck as `def searchIndexersForShowName(self): lang = self.get_argument("lang", strip=True)`
…ows.py

get_*_argument(s) methods return body/query arguments percent-decoded, decoded to unicode, and sanitized with control characters and other unsafe characters removed.
@miigotu
Copy link
Contributor

miigotu commented Jul 22, 2023

I got a bunch of it done. I'm going to try and do these other instances, and also unquote/unquote_plus that is used on route arguments (I don't want to go backwards to what was used before, it's what caused password encoding problems, show dir problems, etc and was hard to track down)

Before other routes are updated to use the correct argument handling, these need gone over (I'll try to do them tonight):
https://photos.app.goo.gl/HhRx8XnpoJjKL8KT7

@BKSteve BKSteve changed the title Pause and Ended Shows same delay. Pause and Ended Shows delay, xhtml_unescape Jul 22, 2023
@miigotu

This comment was marked as outdated.

@BKSteve
Copy link
Collaborator Author

BKSteve commented Jul 22, 2023

They killed the processing. The items with the changes in index were nolonger byte strings see
https://discord.com/channels/502612977271439372/1132179311223373907
where I was journaling the testing.

miigotu and others added 15 commits July 22, 2023 08:15
Signed-off-by: miigotu <miigotu@gmail.com>
This sanitizes and decodes arguments to unicode that are passed in web requests to the server
Also, added logging for developers for all web routes when they have parameters defined in the method signature when they shouldn't be. Each method should explicitly use get_*_argument(s) methods to ensure passed data is safe and sanitized, devoid of control characters, injection safe, and formatted in the correct type. All route methods should only have `self` as a parameter, suck as `def searchIndexersForShowName(self): lang = self.get_argument("lang", strip=True)`
…ows.py

get_*_argument(s) methods return body/query arguments percent-decoded, decoded to unicode, and sanitized with control characters and other unsafe characters removed.
@BKSteve
Copy link
Collaborator Author

BKSteve commented Jul 29, 2023

The IMDbPY isn't being updated so changed to Cinemagoer 2023.5.1 in
bunch of _sr_ to _sc_
Added g to replaceAll in core.js 428 - now #2 is displayed when adding shows. (steep learning curve).

now with add existing a more interesting item.

2023-07-29 20:39:44 DEBUG :: WEBSERVER-ADDSHOWS_0 :: Searching for Show with search term(s): ['Around the World in 80 Days'] on Indexer: theTVDB (exact: False)

Edit 20230730:
See Dateutil Rabbit Hole resolving shows with names that get interpreted as dates.
Haven't followed further with IMDB adding and went for Trakt.

@BKSteve
Copy link
Collaborator Author

BKSteve commented Jul 30, 2023

When working on the trakt add show issue I note the directory and options settings no longer show at top of screen.

This proves to be an issue as the cur_dir isn't known and thus the add process gets stuck.
Edit: truncated as not needed

@miigotu
Copy link
Contributor

miigotu commented Jul 31, 2023

Yeah I don't want to add that code back. I'm in the middle of completely rewriting how trending and favorite and popular shows are added. They used to use a different method, I'm changing it to use new show directly and combining those 3 pages into 1.

@BKSteve
Copy link
Collaborator Author

BKSteve commented Jul 31, 2023

OK, will step back from this area for a couple of days.

BKSteve and others added 5 commits August 1, 2023 20:33
Signed-off-by: miigotu <miigotu@gmail.com>
…d and a notifier

Signed-off-by: miigotu <miigotu@gmail.com>
…hed and make code easier to maintain

Signed-off-by: miigotu <miigotu@gmail.com>
@miigotu
Copy link
Contributor

miigotu commented Aug 6, 2023

I messed up in a few places in the last 3 commits where if s is not None: went to if season:, the is not None needs to stay on that for season and episode.

@miigotu
Copy link
Contributor

miigotu commented Aug 6, 2023

I also still have to fix the add shows. If you want, you could check the add existing and normal show adding. I'll worry about the IMDb/trakt/popular lists.

…alidly 0

Signed-off-by: miigotu <miigotu@gmail.com>
BKSteve and others added 3 commits August 6, 2023 21:50
refactor variable and move more python out of the template

Signed-off-by: miigotu <miigotu@gmail.com>
…fault

use get_query_argument for refreshShow, updateShow, testRename

Signed-off-by: miigotu <miigotu@gmail.com>
@BKSteve
Copy link
Collaborator Author

BKSteve commented Aug 7, 2023

If you want, you could check the add existing and normal show adding.

Tested. Functional.
All show functions; Add, Add Existing (single and multiple), and all internal show edit items working.

Add: Mass Update not ok (expected)

@miigotu miigotu merged commit 06bf481 into develop Aug 8, 2023
11 checks passed
@miigotu miigotu deleted the paused branch August 8, 2023 02:36
@miigotu
Copy link
Contributor

miigotu commented Aug 8, 2023

What is wrong with mass update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants