Commit Graph

19178 Commits

Author SHA1 Message Date
AJ Jordan
d251c701b9
Use systemd-run(1) in restart.sh
systemd-run(1) runs `systemctl restart` in an isolated systemd unit
that is not subject to process termination as jellyfin.service is shut
down. We adjust the sudoers configuration for this new usage, removing
the old config, since restart.sh is the only user of the sudoers
policy.

Additionally we change `systemctl start` to `systemctl restart` since
there was a race condition where jellyfin.service was not fully
stopped by the time this ran, so `systemctl start` became a noop.
`systemctl restart` on the other hand works whether jellyfin.service is
stopped or not.

The at(1) hack (and the usage of `start` instead of `restart`) is left
in for other init systems since I cannot test on those systems, and
because I don't know of any systemd-run(1) equivalent (although it may
be a non-issue since alternate init systems do not keep track of daemon
children nearly as aggressively as systemd does).
2020-12-04 16:18:26 -08:00
AJ Jordan
b528816b2a
Add sudo to package dependencies
It's used in the restart.sh script.

For Debian, this is a Recommends because virtually everyone will need
this (default APT policy is to install recommended packages so this
works ok), but technically you can configure the server to run as root
and then you wouldn't need it.

For Fedora... frankly I got confused by their Weak Dependencies etc. so
I just made it a hard dependency.
2020-11-29 04:15:11 -05:00
AJ Jordan
2911dfc37d
Don't restart with sudo(8) if it's not available
Some environments, like system containers, have no reason to have
sudo(8) installed. In these environments restart.sh will silently fail
because /usr/bin/sudo does not exist to execute, so test that sudo
exists and don't try to use it otherwise.

Note also that hardcoding sudo's path is wrong: it can be installed in
other places. On FreeBSD, for example, it is /usr/local/bin/sudo when
installed from ports.
2020-11-29 04:04:38 -05:00
AJ Jordan
ce82932c9a
Remove useless which(1) calls in restart.sh
at(1) runs commandlines with /bin/sh anyway, which resolves paths. No
need to do it ourselves.
2020-11-29 04:04:22 -05:00
AJ Jordan
a4e1732e35
Fix restart.sh to look at what's actually booted
The old code was wrong because e.g. systemd can be *installed* on the
system, but not actually used as PID1. In that case we would pick
`systemctl`, but it wouldn't actually work because PID1 was some other
init system.
2020-11-29 03:43:03 -05:00
Telmo Duarte
e936d0872b Translated using Weblate (Portuguese)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt/
2020-11-28 17:33:37 -05:00
Telmo Duarte
304bbfd66d Translated using Weblate (Portuguese (Portugal))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
2020-11-28 17:33:37 -05:00
No Available
e52e1918c5 Translated using Weblate (Danish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
2020-11-28 17:33:37 -05:00
dkanada
3e1631fed1
Merge pull request #4608 from jellyfin/enable-music
Remove deprecated flag to disable music plugins
2020-11-29 01:20:43 +09:00
Bill Thornton
162d6ee6b3
Merge pull request #4609 from Bond-009/tests4
Add more tests for JsonGuidConverter
2020-11-28 10:56:42 -05:00
Bond_009
10be618ec3
Add more tests for JsonGuidConverter 2020-11-28 16:33:57 +01:00
Bond-009
1cd3b3fc41
Merge pull request #4605 from hawken93/bugfix-libraryerror
Allow JsonGuidConverter to read null
2020-11-28 16:23:56 +01:00
dkanada
8b0ef119c3 remove deprecated flag to disable music plugins 2020-11-28 23:55:56 +09:00
BaronGreenback
cab78f40b3
[Fix] Possible null reference. (#4585)
Fix possible null reference.
2020-11-28 15:44:14 +01:00
hawken
f9f0df88d5 allow JsonGuidConverter to read null 2020-11-28 09:41:06 +01:00
conashinck
f1b3811ca7 Translated using Weblate (Chinese (Traditional))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant/
2020-11-27 22:23:02 -05:00
conashinck
1458797330 Translated using Weblate (Chinese (Traditional))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant/
2020-11-27 20:33:04 -05:00
Claus Vium
5dc61f066d
Merge pull request #4595 from MrTimscampi/clean-next-up
Don't return first episodes in next up
2020-11-27 21:03:06 +01:00
MrTimscampi
0dda909a60 Fix suggestion 2020-11-27 19:06:18 +01:00
Claus Vium
e6502503f6
Merge pull request #4594 from nyanmisaka/remove-redundant
Remove one redundant 'hwaccel vaapi' string
2020-11-27 18:23:28 +01:00
MrTimscampi
c196ad3351 Don't return first episodes in next up 2020-11-27 10:25:43 +01:00
nyanmisaka
cc9e178d9a remove a redundant 'hwaccel vaapi' string 2020-11-27 16:08:44 +08:00
Joshua M. Boniface
9169a28df1
Merge pull request #4588 from jellyfin/hex
Remove Hex class as the BCL has one now
2020-11-27 01:59:58 -05:00
WWWesten
536ac4c11c Translated using Weblate (Russian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
2020-11-26 14:23:08 -05:00
Rubikscraft
ab6a4fac91 Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2020-11-26 08:15:48 -05:00
Bond_009
38932fc7d1 Schedules Direct requires the hex to be lowercase 2020-11-26 13:21:04 +01:00
Claus Vium
32822ef9e6
Merge pull request #4582 from crobibero/music-client
Use proper Named HttpClient for MusicBrainz requests
2020-11-26 10:32:09 +01:00
Bond_009
8c8a71692e Remove Hex class as the BCL has one now 2020-11-25 23:40:31 +01:00
crobibero
c4423373b6 Use proper Named HttpClient for MusicBrainz requests 2020-11-25 08:47:05 -07:00
Bill Thornton
79f197938d
Merge pull request #4570 from nyanmisaka/tonemap-vaapi
Add Tonemapping for Intel VAAPI
2020-11-25 10:45:52 -05:00
Bond-009
3d6920ae40
Merge pull request #4574 from jellyfin/revert-4553-enable-service-on-fedora
Revert "Enable jellyfin.service unit on Fedora fresh install"
2020-11-25 14:08:18 +01:00
nextlooper42
abf0f85123 Translated using Weblate (Slovak)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
2020-11-25 06:09:06 -05:00
Claus Vium
e86385b74d
Merge pull request #4575 from crobibero/null-ref
Don't throw null reference if ContentType is null.
2020-11-25 08:20:57 +01:00
Ignatius Bagus
8275a5d635 Translated using Weblate (Indonesian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/id/
2020-11-25 00:26:24 -05:00
Nyanmisaka
b042a9f539
minor changes 2020-11-25 10:33:16 +08:00
Bill Thornton
42e90893cd
Merge pull request #4517 from BaronGreenback/pluginMessageFix
[Fix] Fixed Plugin versioning in browser notifications
2020-11-24 20:35:40 -05:00
nextlooper42
4edbd6d182 Translated using Weblate (Slovak)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
2020-11-24 20:34:40 -05:00
Bill Thornton
94ddfda6e5
Merge pull request #4563 from crobibero/playback-info
Fix sending PlaybackInfo
2020-11-24 20:34:32 -05:00
crobibero
0acea5b077 Don't throw null reference if ContentType is null. 2020-11-24 16:42:27 -07:00
volodymyr
49eadd3246 Translated using Weblate (Ukrainian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/uk/
2020-11-24 18:29:13 -05:00
nextlooper42
9b2999237f Translated using Weblate (Slovak)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
2020-11-24 18:29:13 -05:00
Joshua M. Boniface
922b02733b
Revert "Enable jellyfin.service unit on Fedora fresh install" 2020-11-24 17:25:50 -05:00
nextlooper42
9534f55eb0 Translated using Weblate (Slovak)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
2020-11-24 13:58:27 -05:00
Nyanmisaka
44dc1c3729
Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-11-24 16:27:46 +00:00
Nyanmisaka
75963d9181
enable cl-va p010 interop 2020-11-24 23:25:32 +08:00
Nyanmisaka
9c703a75ec
disable graphical subs burn-in when tonemapping 2020-11-24 23:10:34 +08:00
Oatavandi
f8229529ab Translated using Weblate (Tamil)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ta/
2020-11-24 09:56:04 -05:00
nyanmisaka
bee69e409b add tonemapping for intel vaapi
hwdec->scale->tonemap->hwenc

hwdec->scale->tonemap->textsubs->hwenc

* grapical subs requires overlay_vaapi, but it's still in ffmpeg mailing list.
2020-11-24 22:09:13 +08:00
Mikko Puntanen
eefb192584 Translated using Weblate (Finnish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fi/
2020-11-24 06:27:38 -05:00
CutterXYZ
9b14e7d6e4 Translated using Weblate (French)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr/
2020-11-24 06:27:38 -05:00