- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.4k
 
feat(strm_driver): add strm driver #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           这个变更已经超过一个驱动的范围了吧,驱动应该是能独立运行的,不应该改到  | 
    
| 
           的确,如果是想返回自定义的strm内容Link方法的返回值可以使用 OpenList/internal/model/args.go Line 30 in e32cebb 
  | 
    
| 
           并且strm的使用场景好像会有文件(刮削封面等)写入到strm所在的目录吧,所以这个驱动可能不完善,需要绑定一个本地磁盘进行混合读写  | 
    
          
 主要生成的strm文件,需要url前缀,有一些请求里获取不到,才去  | 
    
          
 大部分情况下使用 strm的话不会在目录下生成其他文件了(现在自己使用emby不会),strm文件主要使用目的只是为了生成海报墙,所以不用考虑其他文件的问题  | 
    
          
 这里可以获取到url前缀吗  | 
    
          
 考虑作为 参数/环境动态参数 传入?ctx里应该有不少变量  | 
    
          
 一开始考虑用配置里,感觉不太灵活 OpenList/internal/conf/config.go Line 99 in 18f7a2b 
  | 
    
| 
           你看看LinkArgs里面有没有  | 
    
          
 args.HttpReq可以获取到,但是args里面有些没有HttpReq  | 
    
          
 copy和move 的时候就没有  | 
    
| 
           OpenList/drivers/local/driver.go Lines 139 to 146 in e32cebb 
  | 
    
          
 现在就是用的 common.GetApiUrl,但是有些ctx里面没有,才降级使用的  | 
    
| 
           那的确没啥好办法了,不过你觉得直接用配置文件不灵活的话可以增加为存储配置啊,可以增加多个strm存储配置多种站址  | 
    
          
 copy和move用不到吧,直接挪动原始文件就行  | 
    
          
 这个方法可以,之前想着是一般就一个站址,用户就不用输入了,后面我改成使用存储配置的吧  | 
    
2d61970    to
    b34f1df      
    Compare
  
    | 
           @foxxorcat @ljcbaby 按照建议修改了,帮忙审查下  | 
    
| 
           下载strm文件里的媒体类型没改回来吧  | 
    
          
 指的是哪一块  | 
    
          
 test.mp4被改成test.strm,emby访问/d/test.strm的得到的文件内容是/d/test.strm?sign=xxx吧,不应该是/d/test.mp4?sign=xxx吗  | 
    
          
 明白你的意思了,strm文件的内容是根据path生成的,这里只改了显示名称为strm,path没改  | 
    
          
 你下载看看是不是,我看着像没改。。。  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strm只支持这些文件吗,要不改成存储配置允许用户增加?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
存储设置里可以设置 FilterFileTypes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FilterFileTypescan参数我设置了strm ass也无法拿到ass字幕文件, strm驱动里只有strm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FilterFileTypescan参数我设置了strm ass也无法拿到ass字幕文件, strm驱动里只有strm
用,分割,并且这个参数是控制将哪些文件转换成strm的,不是保留文件的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FilterFileTypescan参数我设置了strm ass也无法拿到ass字幕文件, strm驱动里只有strm
用,分割,并且这个参数是控制将哪些文件转换成strm的,不是保留文件的
好的,谢谢
那请问一下有支持保留文件的计划吗 字幕文件需要保留
        
          
                drivers/strm/driver.go
              
                Outdated
          
        
      | 
               | 
          ||
| func (d *Strm) Init(ctx context.Context) error { | ||
| // 强制使用本地代理 | ||
| d.Storage.Proxy.WebdavPolicy = "native_proxy" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没记错的话这里不需要强制设置,获取的link为reader时自动会使用代理
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里我试了下302 和 代理地址都有点问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里我试了下302 和 代理地址都有点问题
你再测试一下,如果真有问题,那其他驱动也会有
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码大体没问题,但我没部署emby没法测试实际使用
          
 vidhub也支持strm.可以直接添加webdav  | 
    
13d619e    to
    6b8fc31      
    Compare
  
    6b8fc31    to
    06db57c      
    Compare
  
    | 
           怎么没有食用说明呢  | 
    
| 
           佬们,能不能加一个不url转码的开关,因为我记的从api中请求网盘直链是要使用明文路径的;还有就是strm文件内地sign能不能开关  | 
    
| 
           怎么关闭URL编码  | 
    
| 
           strm的使用场景好像会有文件(刮削封面等)写入到strm所在的目录,你这个不可以读写,最好增加docker映射本地,而且今天测试emby扫库巨慢!  | 
    
| 
           得能映射出来..才能在emby、jellyfin之类的用上吧?  | 
    
          
 您应该是指刮削生成nfo之类的写进去原目录吧?这个是得考虑写入以及存储的位置应该怎样的逻辑了。我之前自己用strm的时候,是设置不生成其他文件的。  | 
    
          
 这个驱动暂时不在本地存储数据,最好使用webdav挂载或者同步到本地使用  | 
    
          
 请问一下后面会有保存到本地的计划吗?  | 
    






添加strm驱动,类似别名驱动,将文件变成strm文件进行挂载
see: #106 (comment)