Skip to content

Commit

Permalink
Merge pull request #44 from tphoney/pulldown
Browse files Browse the repository at this point in the history
(feat) audio language pull down menu
  • Loading branch information
tphoney authored Jun 7, 2024
2 parents 321429e + 2546760 commit 34dda2b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
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

0 comments on commit 34dda2b

Please sign in to comment.