Emby.Plugins.JavScraper icon indicating copy to clipboard operation
Emby.Plugins.JavScraper copied to clipboard

emby4.7.0.13无法使用

Open rayphoto opened this issue 3 years ago • 10 comments

emby4.7.0.13 JavScrapers是目前最新的622.2145 代理服务器已配置生效 能刷出JavScrapers是最新的提示

扫描媒体库和刷新元数据没任何反应 电影文件夹还是没图片没动静 和文件夹浏览风格一样 右键单独点识别 能发现图片和番号 但点确认后电影目录并不会更新封面和简介等内容

是不是版本不匹配哦

rayphoto avatar Nov 06 '21 06:11 rayphoto

我也是,试了应该是版本不匹配,看了日志主要是这里出错了 Info App: GetImageResponse-/emby/Plugins/JavScraper/Image?url=https%3a%2f%2fpics.dmm.co.jp%2fdigital%2fvideo%2fmide00990%2fmide00990ps.jpg&type=Backdrop 如果补齐为http://xxxxx/emby/Plugins/JavScraper/Image?url=https%3a%2f%2fpics.dmm.co.jp%2fdigital%2fvideo%2fmide00990%2fmide00990ps.jpg&type=Backdrop应该就正常了,希望尽快修复

spldmanager avatar Nov 06 '21 14:11 spldmanager

自己改了文件重新编译了一个可以了 要改源码两个地方,一个是要增加本地IP前缀,另外一个是要注释掉一个4.7.0.13没有的方法类型 不知道还会不会有其他bug,先凑合用了

spldmanager avatar Nov 07 '21 11:11 spldmanager

自己改了文件重新编译了一个可以了 要改源码两个地方,一个是要增加本地IP前缀,另外一个是要注释掉一个4.7.0.13没有的方法类型 不知道还会不会有其他bug,先凑合用了

你自己重新编译?我不会弄这个。。你编译的发给别人能用吗? 你说加本地IP什么的 是不是得单独定制 或者自动识别才行?

rayphoto avatar Nov 13 '21 05:11 rayphoto

自己改了文件重新编译了一个可以了 要改源码两个地方,一个是要增加本地IP前缀,另外一个是要注释掉一个4.7.0.13没有的方法类型 不知道还会不会有其他bug,先凑合用了

你自己重新编译?我不会弄这个。。你编译的发给别人能用吗? 你说加本地IP什么的 是不是得单独定制 或者自动识别才行?

不行,因为我比较小白,在这个文件的第83行,要把你emby的局域网地址加上去 Emby.Plugins.JavScraper/Emby.Plugins.JavScraper/Services/ImageProxyService.cs

var uri = new Uri(url); //url前要加本地局域网地址

然后有两个文件中的代码要注释掉 ForcedSortName = name,

编译的话,去微软官网下载一个dotnet,用系统自带的powershell就可以编译出来了

spldmanager avatar Nov 13 '21 12:11 spldmanager

@spldmanager 请问你只是修改了这3个文件,项目的其他地方有做什么修改吗?可以贴一下你使用的dotnet版本? 我clone了项目,尝试过dotnet6和dotnet5,都没编译成功。

看上去是这个 Mono.Cecil 的问题,查阅了很多帖子,都没解决。 没做过dotnet或者C#方面的开发,没搞明白。

正在确定要还原的项目…
  已还原 c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj (用时 478 ms)。
  已还原 c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Plugins.JavScraper\Emby.Plugins.JavScraper.csproj (用时 478 ms)。
  1 个项目(共 3 个)是最新的,无法还原。
MSBUILD : error : Fody: An unhandled exception occurred: [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : Exception: [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : Could not load file or assembly 'Mono.Cecil, Version=0.11.0.0, Culture=neutral, PublicKeyToken=1ca091877d12ca03'. 系统找不
到指定的文件。 [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : Type: [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : System.IO.FileNotFoundException [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : StackTrace: [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error :    at InnerWeaver.Execute() [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error :    at Processor.ExecuteInOwnAssemblyLoadContext() in C:\projects\fody\Fody\Processor.cs:line 148 [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error :    at Processor.Inner() in C:\projects\fody\Fody\Processor.cs:line 122 [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error :    at Processor.Execute() in C:\projects\fody\Fody\Processor.cs:line 50 [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : Source: [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : FodyIsolated [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : TargetSite: [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error : Void Execute() [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]
MSBUILD : error :  [c:\Users\Wooo\dotnet\Emby.Plugins.JavScraper\Emby.Actress\Emby.Actress.csproj]

ansonhorse avatar Nov 15 '21 14:11 ansonhorse

瞎折腾一番总算能build了

文件:Emby.Actress\Emby.Actress.csproj 变动:更新了Costura.Fody;另外Mono.Cecil也不清楚是否要写上,反正现在能用😂

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
    <ApplicationIcon>Icon.ico</ApplicationIcon>
    <Configurations>Debug;Release;Debug.Jellyfin;Release.Jellyfin</Configurations>
  </PropertyGroup>

  <ItemGroup>
    <Reference Condition="'$(TargetFramework)'=='net461'" Include="System.Web" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Costura.Fody" Version="5.7.0" />
    <PackageReference Include="Mono.Cecil" Version="0.11.4" />
    <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
    <PackageReference Condition="'$(TargetFramework)'=='net461'" Include="System.Net.Http" Version="4.3.4" />
  </ItemGroup>

</Project>

ansonhorse avatar Nov 15 '21 15:11 ansonhorse

瞎折腾一番总算能build了

文件:Emby.Actress\Emby.Actress.csproj 变动:更新了Costura.Fody;另外Mono.Cecil也不清楚是否要写上,反正现在能用😂

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
    <ApplicationIcon>Icon.ico</ApplicationIcon>
    <Configurations>Debug;Release;Debug.Jellyfin;Release.Jellyfin</Configurations>
  </PropertyGroup>

  <ItemGroup>
    <Reference Condition="'$(TargetFramework)'=='net461'" Include="System.Web" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Costura.Fody" Version="5.7.0" />
    <PackageReference Include="Mono.Cecil" Version="0.11.4" />
    <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
    <PackageReference Condition="'$(TargetFramework)'=='net461'" Include="System.Net.Http" Version="4.3.4" />
  </ItemGroup>

</Project>

我开始也是没法编译成功 后来发现只要进入到Emby.Plugins.JavScraper目录运行编译就好了,如果在项目目录下运行会失败

spldmanager avatar Nov 16 '21 07:11 spldmanager

瞎折腾一番总算能build了 文件:Emby.Actress\Emby.Actress.csproj 变动:更新了Costura.Fody;另外Mono.Cecil也不清楚是否要写上,反正现在能用😂

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
    <ApplicationIcon>Icon.ico</ApplicationIcon>
    <Configurations>Debug;Release;Debug.Jellyfin;Release.Jellyfin</Configurations>
  </PropertyGroup>

  <ItemGroup>
    <Reference Condition="'$(TargetFramework)'=='net461'" Include="System.Web" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Costura.Fody" Version="5.7.0" />
    <PackageReference Include="Mono.Cecil" Version="0.11.4" />
    <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
    <PackageReference Condition="'$(TargetFramework)'=='net461'" Include="System.Net.Http" Version="4.3.4" />
  </ItemGroup>

</Project>

我开始也是没法编译成功 后来发现只要进入到Emby.Plugins.JavScraper目录运行编译就好了,如果在项目目录下运行会失败

我按照我贴出来的修改后,是可以在项目根路径编译成功的。

不过今天尝试在macOS上编译,发现项目用到的这个ILRepack,只支持Windows😅

ansonhorse avatar Nov 16 '21 08:11 ansonhorse

请问可以将编译好的插件发出来吗 谢谢

daxigua112 avatar Dec 04 '21 06:12 daxigua112

找不到这个文件呢。请问在哪里呢,能发下编译好的给我吗

poko11 avatar May 29 '22 13:05 poko11