- Improve/consolidate settings methods and split up non-settings related actions
- Validate IP address and port number user inputs
- Check correct private IPv4 private ranges
- Check what network interface the nominated listen address is available on
- Configure default listen address in setup wizard
- Use correct conditions to check whether http server should run
- Batch process settings changes in ServiceMonitor.onSettingsChanged rather than passing notifications back and forth
- make_dirs returns translated path on success
- Use to check/create/get in one go
- Rename native_path to addon_path
- Use os.path.join rather than hardcoding path seperators
- Fix unnecessarily nested os.path.join calls
- Closes#450
- Support following plugin url formats:
- plugin://plugin.video.youtube/uri2addon/?uri=https://www.youtube.com/clip/<clip_id>
- plugin://plugin.video.youtube/play/?video_id=<video_id>&start=<start_time>&end=<end_time>&clip=true
- optional clip parameter will loop the clip between start_time and end_time, otherwise video will stop after end_time is reached
- use datetime objects for setting rather than parsing back and forth
- date and dateadded values stored as datetime rather than str
- date and dateadded getter can retrieve value as datetime, date str or datetime.isoformat
- aired and premiered values stored as date rather than st
- aired and premiered getter can retrieve value as date, or date.isoformat
- datetime_parser.parse will always create a datetime object rather than a date object
- the caller can determine whether datetime.date() needs to be used after that
- duration getter can optionally retrieve value as hh:mm:ss string
- listitem label2 now uses the same data as default label mask including date and duration
- Fix incorrect duration of upcoming videos
- Fix imdbnumber being saved to incorrect info label
- Add view count to listitem info and sort methods
- Add rating to listitem info and sort method based on made up ranking
- Add label masking to sort methods
- Move LOCAL_MAP from provider to context as that is where it is used
- Remove const_localize (redundant when using LOCAL_MAP)
- Remove _local_map (redundant when using LOCAL_MAP)
- Update and sort id names
- Replace hardcoded integer ids with id names
- Tidy up provider
- Existing "Show channel name in description" option changed to
"Show channel name and video details in description"
- Displays number of views, likes, comments in description if enabled
- Displays stats and premiere datetime in label2
- Closes#503, #18
- IA to ISA, ia to isa, adaptive to isa
- MPD to ISA, mpd to isa when non MPEG-DASH specific
- new HLS/hls variables and methods for HLS specific functionality
No (intended) functional changes:
- extraneous indentation/whitespace
- missing explicit return values
- unnecessary return values
- combine nested if statements
- else/elif after return
- change else if to elif
- change if X: to if not X: return
- use conditional expressions
- simplify redundant conditions in if statements
- change bool if condition else not bool to just condition
- remove u-strings
- remove unused variables
- reduce line lengths