Giter Site home page Giter Site logo

Comments (4)

Yuukiy avatar Yuukiy commented on June 13, 2024

添加了分片编号的检查主要是担心有用户可能在不同的子目录里存了同一影片的分片和不分片版本,或者直接接受不连续的分片时可能导致整理后编号错乱。你的两个问题,现在都是不支持的。
不过你什么场景下需要用到不连续的分片呢?只想保留某个分片节省空间?如果只是因为解决emby不识别分片的问题,可以改一下设置:
media_servers = universal
这样的设置是最大兼容性的设置,emby应该能识别的

from javsp.

AlphaVitaMan avatar AlphaVitaMan commented on June 13, 2024

因為VR檔有時非常大(10~20GB), 但主要劇情可能都只是其中一兩個檔, 所以多數是看完截圖再選擇下載那個分片檔, 雖然分片編號改變對整理影片時影響不大, 但可能之後突然想下載回之前某分片時, 那個編號就變得有用了.

剛試了一下Emby 在同一資料夾下讀取CD1 CD2 又OK了, 可能是昨天測試時手速太快......

不過因為放便手動管理, 我都習慣把同一演員的影片不分資料夾全放在一起, 因為如果單純用poster.jpg, fanart.jpg, 就不能區分那幅圖是那影片的, 而且在windows上檢查檔案時, 單搜索番號會方便很多.

所以如果有選項能保留原片名應該就能解決這個問題了.

from javsp.

Yuukiy avatar Yuukiy commented on June 13, 2024

这个功能感觉很偏门我就不做了,你如果需要的话可以试着fork之后自己改一下

JavSP/core/file.py

Lines 113 to 123 in 0c1024d

# 影片编号必须从 0/1/a 开始且编号连续
sorted_slices = sorted(slices)
first, last = sorted_slices[0], sorted_slices[-1]
if (first not in ('0', '1', 'a')) or (ord(last) != (ord(first)+len(sorted_slices)-1)):
logger.debug(f"无效的分片起始编号或分片编号不连续: {sorted_slices=}")
non_slice_dup[avid] = files
del dic[avid]
continue
# 生成最终的分片信息
mapped_files = [files[slices.index(i)] for i in sorted_slices]
dic[avid] = mapped_files

from javsp.

AlphaVitaMan avatar AlphaVitaMan commented on June 13, 2024

謝謝大大

from javsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.