-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Media): Allow for plex, prowlarr, sonarr and radarr applications…
… in home portal
- Loading branch information
Showing
17 changed files
with
258 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Creates the media category for the home portal.""" | ||
|
||
from typing import Any, no_type_check | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
from apps.models import HomePortalCategory | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Create the media category for the home portal.""" | ||
|
||
@no_type_check | ||
def handle(self, *args: Any, **options: Any) -> None: | ||
"""Create the media category for the home portal.""" | ||
category = HomePortalCategory.objects.create(title="Media", icon="PlayCircleOutlined") | ||
category.save() |
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,32 @@ | ||
"""Creates the plex app for the home portal.""" | ||
|
||
from typing import Any, no_type_check | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
from apps.models import HomePortalApplication, HomePortalCategory | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Create the plex app for the home portal.""" | ||
|
||
@no_type_check | ||
def handle(self, *args: Any, **options: Any) -> None: | ||
"""Create the plex app for the home portal.""" | ||
category = HomePortalCategory.objects.get(title="Media") | ||
|
||
link = input( | ||
"Please enter your plex link (This will be a direct link and not proxied via the HomePortal): " # noqa | ||
) | ||
|
||
app = HomePortalApplication.objects.create( | ||
title="Plex", | ||
description="Plex is a media server that allows you to stream your media to any device.", # noqa | ||
link_name="Plex", | ||
link=link, | ||
side_menu_visible=True, | ||
category=category, | ||
side_menu_name="Plex", | ||
side_menu_icon="PlayCircleOutlined", | ||
) | ||
app.save() |
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,32 @@ | ||
"""Creates the prowlarr app for the home portal.""" | ||
|
||
from typing import Any, no_type_check | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
from apps.models import HomePortalApplication, HomePortalCategory | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Create the prowlarr app for the home portal.""" | ||
|
||
@no_type_check | ||
def handle(self, *args: Any, **options: Any) -> None: | ||
"""Create the prowlarr app for the home portal.""" | ||
category = HomePortalCategory.objects.get(title="Media") | ||
|
||
link = input( | ||
"Please enter your prowlarr link (This will be a direct link and not proxied via the HomePortal): " # noqa | ||
) | ||
|
||
app = HomePortalApplication.objects.create( | ||
title="Prowlarr", | ||
description="", | ||
link_name="Prowlarr", | ||
link=link, | ||
side_menu_visible=True, | ||
category=category, | ||
side_menu_name="Prowlarr", | ||
side_menu_icon="VerticalAlignBottomOutlined", | ||
) | ||
app.save() |
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,32 @@ | ||
"""Creates the radarr app for the home portal.""" | ||
|
||
from typing import Any, no_type_check | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
from apps.models import HomePortalApplication, HomePortalCategory | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Create the radarr app for the home portal.""" | ||
|
||
@no_type_check | ||
def handle(self, *args: Any, **options: Any) -> None: | ||
"""Create the radarr app for the home portal.""" | ||
category = HomePortalCategory.objects.get(title="Media") | ||
|
||
link = input( | ||
"Please enter your radarr link (This will be a direct link and not proxied via the HomePortal): " # noqa | ||
) | ||
|
||
app = HomePortalApplication.objects.create( | ||
title="Radarr", | ||
description="", | ||
link_name="Radarr", | ||
link=link, | ||
side_menu_visible=True, | ||
category=category, | ||
side_menu_name="Radarr", | ||
side_menu_icon="VerticalAlignBottomOutlined", | ||
) | ||
app.save() |
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,32 @@ | ||
"""Creates the sonarr app for the home portal.""" | ||
|
||
from typing import Any, no_type_check | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
from apps.models import HomePortalApplication, HomePortalCategory | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Create the sonarr app for the home portal.""" | ||
|
||
@no_type_check | ||
def handle(self, *args: Any, **options: Any) -> None: | ||
"""Create the sonarr app for the home portal.""" | ||
category = HomePortalCategory.objects.get(title="Media") | ||
|
||
link = input( | ||
"Please enter your sonarr link (This will be a direct link and not proxied via the HomePortal): " # noqa | ||
) | ||
|
||
app = HomePortalApplication.objects.create( | ||
title="Sonarr", | ||
description="", | ||
link_name="Sonarr", | ||
link=link, | ||
side_menu_visible=True, | ||
category=category, | ||
side_menu_name="Sonarr", | ||
side_menu_icon="VerticalAlignBottomOutlined", | ||
) | ||
app.save() |
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,23 @@ | ||
# Plex Media Server | ||
|
||
This is a relatively simple guide to setting up Plex Media Server on your home portal. This guide assumes you have already setup your home portal and have a working instance of Plex Media Server running on your network. | ||
|
||
## 0. Install the media category | ||
|
||
There are a few apps that fall under the media category. To install the media category, run the following command: | ||
|
||
NOTE: You should only run this command if you have not already installed the media category. | ||
|
||
```bash | ||
./scripts/media.sh | ||
``` | ||
|
||
## 1. Integrate plex with the home portal | ||
|
||
To integrate Plex with the home portal, you will need to run the following script: | ||
|
||
```bash | ||
./scripts/plex.sh | ||
``` | ||
|
||
And that is it, the script will ask for your link to plex and setup a redirect to it via the home portal. |
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,23 @@ | ||
# Prowlarr | ||
|
||
This is a relatively simple guide to setting up Prowlarr on your home portal. This guide assumes you have already setup your home portal and have a working instance of Prowlarr running on your network. | ||
|
||
## 0. Install the media category | ||
|
||
There are a few apps that fall under the media category. To install the media category, run the following command: | ||
|
||
NOTE: You should only run this command if you have not already installed the media category. | ||
|
||
```bash | ||
./scripts/media.sh | ||
``` | ||
|
||
## 1. Integrate prowlarr with the home portal | ||
|
||
To integrate prowlarr with the home portal, you will need to run the following script: | ||
|
||
```bash | ||
./scripts/prowlarr.sh | ||
``` | ||
|
||
And that is it, the script will ask for your link to prowlarr and setup a redirect to it via the home portal. |
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,23 @@ | ||
# Radarr | ||
|
||
This is a relatively simple guide to setting up Radarr on your home portal. This guide assumes you have already setup your home portal and have a working instance of Radarr running on your network. | ||
|
||
## 0. Install the media category | ||
|
||
There are a few apps that fall under the media category. To install the media category, run the following command: | ||
|
||
NOTE: You should only run this command if you have not already installed the media category. | ||
|
||
```bash | ||
./scripts/media.sh | ||
``` | ||
|
||
## 1. Integrate Radarr with the home portal | ||
|
||
To integrate Radarr with the home portal, you will need to run the following script: | ||
|
||
```bash | ||
./scripts/radarr.sh | ||
``` | ||
|
||
And that is it, the script will ask for your link to radarr and setup a redirect to it via the home portal. |
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,23 @@ | ||
# Sonarr | ||
|
||
This is a relatively simple guide to setting up Sonarr on your home portal. This guide assumes you have already setup your home portal and have a working instance of Sonarr running on your network. | ||
|
||
## 0. Install the media category | ||
|
||
There are a few apps that fall under the media category. To install the media category, run the following command: | ||
|
||
NOTE: You should only run this command if you have not already installed the media category. | ||
|
||
```bash | ||
./scripts/media.sh | ||
``` | ||
|
||
## 1. Integrate Sonarr with the home portal | ||
|
||
To integrate Sonarr with the home portal, you will need to run the following script: | ||
|
||
```bash | ||
./scripts/sonarr.sh | ||
``` | ||
|
||
And that is it, the script will ask for your link to Sonarr and setup a redirect to it via the home portal. |
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 @@ | ||
docker exec -it hp-admin python manage.py imedia |
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 @@ | ||
docker exec -it hp-admin python manage.py iplex |
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 @@ | ||
docker exec -it hp-admin python manage.py iprowlarr |
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 @@ | ||
docker exec -it hp-admin python manage.py iradarr |
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 @@ | ||
docker exec -it hp-admin python manage.py isonarr |