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

(feat) audio language pull down menu #44

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

## features

- make language a pull down menu tv / movies page
- re-assess new filter for tv / movie page

## bugs
Expand Down Expand Up @@ -47,3 +46,4 @@
- improve best match for tv series
- vikings, Once Upon a Time in Wonderland, What We Do in the Shadows, The Peter Serafinowicz Show is not showing up on cinema-paradiso tv search
- allow the use of playlists for finding music / TV / movies `https://www.plexopedia.com/plex-media-server/api/playlists/view/`
- make language a pull down menu tv / movies page
9 changes: 6 additions & 3 deletions web/movies/movies.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ <h1 class="container">Movies</h1>
</fieldset>
<fieldset>
<legend><strong>Lookup Filters:</strong></legend>
<label for="lamguage">
<input type="checkbox" id="language" name="language" value="german">
German audio
<label for="language">
Audio language:
<select id="language" name="language">
<option value="english" selected>English</option>
<option value="german">German</option>
</select>
</label>
<label for="newerVersion">
<input type="checkbox" id="newerVersion" name="newerVersion" value="true">
Expand Down
6 changes: 3 additions & 3 deletions web/tv/tv.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ func (c TVConfig) ProcessHTML(w http.ResponseWriter, r *http.Request) {
playlist := r.FormValue("playlist")
lookup = r.FormValue("lookup")
// lookup filters
newFilters := types.MovieLookupFilters{}
newFilters.AudioLanguage = r.FormValue("language")
newFilters.NewerVersion = r.FormValue("newerVersion") == types.StringTrue
filters.AudioLanguage = r.FormValue("language")
filters.NewerVersion = r.FormValue("newerVersion") == types.StringTrue
// get TV shows from plex
if playlist == "all" {
plexTV = plex.AllTV(c.Config.PlexIP, c.Config.PlexToken, c.Config.PlexTVLibraryID)
} else {
Expand Down
7 changes: 5 additions & 2 deletions web/tv/tv.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ <h1 class="container">TV</h1>
<fieldset>
<legend><strong>Lookup Filters:</strong></legend>
<label for="language">
<input type="checkbox" id="language" name="language" value="german">
German audio
Audio language:
<select id="language" name="language">
<option value="english" selected>English</option>
<option value="german">German</option>
</select>
</label>
<label for="newerVersion">
<input type="checkbox" id="newerVersion" name="newerVersion" value="true">
Expand Down
Loading