The button used to be cloned in next to "Copy Stream URL", or shoved at the top of the menu when there was none, which put it in the middle of Jellyfin's own command groups. Now there is a single injection path: append an actionsheetDivider plus the action at the end of the sheet's scroller, so it reads as its own section the way Jellyfin separates its groups. It also stopped appearing on menus for things that are not media. The old code resolved the item from the URL, so opening the "..." menu on a cast member inside a movie page showed ShareLink and would have shared the movie behind it. The item is now taken from the trigger that opened the menu (card, list row or the detail page's own button, all of which we can walk up from) and its type is checked against the server before anything is injected: movie, series, season, episode, nothing else. The API refuses everything else too, so a hand-rolled request cannot tag a person or a playlist either. Clicking the action now dismisses the action sheet instead of leaving it stacked under the dialog.
26 lignes
774 B
XML
26 lignes
774 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<LangVersion>latest</LangVersion>
|
|
<RootNamespace>Jellyfin.Plugin.ShareLinks</RootNamespace>
|
|
<AssemblyName>Jellyfin.Plugin.ShareLinks</AssemblyName>
|
|
<Version>1.0.2.0</Version>
|
|
<AssemblyVersion>1.0.2.0</AssemblyVersion>
|
|
<FileVersion>1.0.2.0</FileVersion>
|
|
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
|
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Jellyfin.Controller" Version="10.11.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Web\**\*.*" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|