-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Jellyfin media server type * Add and use `forms_dict` and `long_types` methods * Add `JellyfinMediaServerForm` * Use `JellyfinMediaServer` * Add and use `MediaServerType.handlers_dict` method * Do not hard-code `plex` * Also map backwards in `MediaServerType.long_types` * Use the long server type for URLs * Loop over media server type names * Add `MediaServerType.long_type` property * Add `media_server_types` to template context * Use the `MediaServerType.members_list` class method * Port is already part of the URL
- Loading branch information
Showing
8 changed files
with
143 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 3.2.25 on 2025-02-22 03:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sync', '0028_alter_source_source_resolution'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='mediaserver', | ||
name='options', | ||
field=models.TextField(help_text='JSON encoded options for the media server', null=True, verbose_name='options'), | ||
), | ||
migrations.AlterField( | ||
model_name='mediaserver', | ||
name='server_type', | ||
field=models.CharField(choices=[('j', 'Jellyfin'), ('p', 'Plex')], db_index=True, default='p', help_text='Server type', max_length=1, verbose_name='server type'), | ||
), | ||
migrations.AlterField( | ||
model_name='mediaserver', | ||
name='use_https', | ||
field=models.BooleanField(default=False, help_text='Connect to the media server over HTTPS', verbose_name='use https'), | ||
), | ||
migrations.AlterField( | ||
model_name='mediaserver', | ||
name='verify_https', | ||
field=models.BooleanField(default=True, help_text='If connecting over HTTPS, verify the SSL certificate is valid', verbose_name='verify https'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters