Commit Graph

100 Commits

Author SHA1 Message Date
mani
1c75b09824 Fix context menu implementation for track selection
Some checks failed
Build JellyCon / build (py2) (push) Has been cancelled
Build JellyCon / build (py3) (push) Has been cancelled
CodeQL Analysis / analyze (python, 3.9) (push) Has been cancelled
Release Drafter / Update release draft (push) Has been cancelled
Test JellyCon / test (3.9) (push) Has been cancelled
- Remove incorrect addContextMenuItems() from item_functions.py as JellyCon uses custom context menu system
- Add "Play with track selection" entry to JellyCon's ActionMenu in show_menu() for Movies and Episodes
- Add handler for play_with_track_selection action that sets force_track_selection parameter
2026-01-06 00:55:13 +01:00
mani
ebd59760ae Fix context menu import causing movies not to load
Some checks failed
Build JellyCon / build (py2) (push) Has been cancelled
Build JellyCon / build (py3) (push) Has been cancelled
CodeQL Analysis / analyze (python, 3.9) (push) Has been cancelled
Release Drafter / Update release draft (push) Has been cancelled
Test JellyCon / test (3.9) (push) Has been cancelled
- Fix incorrect import: change 'from . import translation' to
  'from .utils import translate_string'
- Add try/except block to prevent context menu errors from breaking playback
- Add defensive check for item_details.id existence
- Add error logging for debugging context menu issues

This fixes the critical bug where the movie menu would not load
due to the incorrect translation import.
2026-01-06 00:46:21 +01:00
mani
b9a6b5056a Add language-based track selection and context menu
Context Menu Integration:
- Add 'Play with track selection' option to video context menus
- Available for movies and episodes via long-press/context menu
- Forces manual track selection dialog even when auto-selection is configured

Language Selection Improvements:
- Add dropdown selectors for preferred audio/subtitle languages
- Support German, English, French, Spanish, Italian, Japanese, Russian
- Add comprehensive language matching (e.g., 'ger' matches 'deu', 'deutsch', 'german')
- Add setting to auto-select 'No subtitles' when no matching subtitle found

Track Selection Scoring System:
- Audio tracks: Language match (+100), default flag (+50),
  channel count (+5-40), codec quality (+10-30), exclude commentary (-100)
- Subtitle tracks: Language match (+100), forced flag (+50),
  SRT preference (+30), default flag (+10)

Implementation Details:
- Add force_track_selection parameter throughout playback chain
- Preserve server/remote control track selections when not forcing manual selection
- Add extensive debug logging for track selection decisions
- Respect user preferences while allowing manual override via context menu
2026-01-06 00:32:44 +01:00
Matt
2cd7c3bd7f Fix context menu in kodi v20 2023-02-18 16:27:14 -05:00
Kian-Meng Ang
7efcb96921 Fix typos
Found via:
- `codespell -S *.po,*.xml`
- `typos --format brief`
2023-01-21 10:43:11 +08:00
mcarlton00
347ab47672 Refactor imports to be under line length limit 2023-01-12 21:02:32 -05:00
mcarlton00
d25de226d0 Reorder imports for flake8 guidelines 2023-01-12 20:50:41 -05:00
mcarlton00
bf513dee43 Fix flake8 linting complaints 2023-01-11 19:51:26 -05:00
Matt
beda70b1f9 Add play option to music video context menu 2022-10-08 16:43:57 -04:00
Matt
bad5f8e561 Remove unnecessary import 2022-06-16 19:38:15 -04:00
Matt
075e1e8974 Move current date calculation to a function 2022-06-16 18:24:16 -04:00
Matt
06f78ce620 Do all date calculations in UTC 2022-06-16 18:15:40 -04:00
Matt
5534878dcd Use offscreen option when generating all listitems 2022-06-12 10:52:49 -04:00
Matt
44afd62989 Address flake8 warnings 2022-06-09 20:35:06 -04:00
mcarlton00
43f576d1c5 Fix browsing the Live TV programs menu (#145)
* Convert server times to local timezone

* Fix naming format of programs

* Simplify string formatting

* Remove unneeded space
2022-04-30 10:34:47 -04:00
Odd Stråbø
a482172be4 Utilize the new kodi_version function 2022-03-09 23:22:26 +01:00
Odd Stråbø
6126d617f5 Copy translate_path from Jf4Kodi, fix LazyLogger 2022-03-09 22:51:38 +01:00
Matt
36b23d0b19 Reworking the network stack 2022-02-27 22:15:54 -05:00
Matt
264145c4b9 Address flake8 complaints 2021-12-30 18:40:08 -05:00
Matt
daea47bf38 More small tweaks 2021-12-30 18:13:57 -05:00
Matt
5c3740b8a9 Function refactoring and reordering 2021-12-29 16:54:05 -05:00
Matt
ade08f74a4 Only set the cast if they exist 2021-12-12 13:43:45 -05:00
Mister Rajoy
e596998a72 Change str to ensure_text to keep compatibility 2021-03-18 16:57:39 +01:00
Mister Rajoy
f224c0b94a Change unicode to str
Python 3 renamed the unicode type to str
2021-03-17 17:42:18 +01:00
Matt
8ece4ae651 Remove commented blocks of code 2021-02-14 11:14:03 -05:00
Matt
ed3087a222 String manipulations and encoding fixes 2021-01-26 22:34:51 -05:00
Matt
df774ca3c5 Simplify logic checks 2020-11-15 14:13:45 -05:00
mcarlton00
1733e64403 Parse json payloads in centralized place 2020-11-11 22:50:26 -05:00
Matt
a90c2c2fa8 Use future strings to fix unicode errors 2020-09-05 17:29:38 -04:00
Matt
a0efd1087f Copy log handler from JF for Kodi, modify for strings 2020-07-25 01:01:30 -04:00
mcarlton00
e59b54cccf Beginning rebranding + removing emby from api urls 2020-07-04 13:26:21 -04:00
faush01
ef5714e5d2 add tags to media items 2020-06-27 19:40:44 +10:00
faush01
e8a9be1ae0 fix a bung of LINT warnings 2020-06-21 11:27:09 +10:00
faush01
693a505373 use the episode special sort numbering before|after to set the correct sorting for specials 2020-06-09 12:07:38 +10:00
faush01
ea3e7620d8 add default sorting to settings 2020-06-08 19:49:22 +10:00
faush01
fb032f9bde add default (server) sorting to some lists 2020-03-30 16:28:30 +11:00
Shaun
1904241ec2 reduce some debug logging 2019-12-30 09:38:41 +11:00
faush01
b06fd5a616 add spaces to the join for genre 2019-08-16 19:21:10 +10:00
Shaun
4054a0f17c session_id should no longer be needed, this was a hack to get things to show the correct play status 2019-07-07 12:17:11 +10:00
faush01
be17aa0751 fix aspect ratio missing error 2019-06-15 18:30:00 +10:00
faush01
e2b18be388 add all the streams 2019-06-13 18:21:51 +10:00
faush01
f309ea86a4 add audio lang to stream info 2019-06-13 10:49:44 +10:00
faush01
a0ad0857f2 only set sort title if emby has one 2019-05-09 13:22:57 +10:00
faush01
26e4a5e08c add SortName 2019-05-06 16:04:36 +10:00
Shaun
4f08389149 add trailer link for TV Shows as well 2019-02-10 17:10:19 +11:00
faush01
dbdeefeef1 add IsSpecial property 2019-01-16 20:09:52 +11:00
faush01
759638e2ff updates requested 2019-01-11 10:24:42 +11:00
faush01
a20b1b1553 new user selection interface 2019-01-05 13:28:43 +11:00
Sebastian S
c7d772287d fix season number for seasons (#46)
* fix season number for seasons

* fixed missing listitem.episode value for seasons
2019-01-02 15:04:29 +11:00
Shaun
1389664565 add series_id to seasona and episodes 2018-12-27 11:39:30 +11:00