我正在尝试下载多个torrent,我想要最后一个.mp4文件。 我不能专门针对特定文件的特定部分,但是,例如,如果我的洪流包含3个文件:
1.mp4 2.mp4 3.mp4
最后的种子文件与3.mp4文件的最后一块文件相同吗?因此,通过下载最后一部分,我将对3.mp4文件的最后一部分进行贬低。 有没有办法定位2.mp4和1.mp4的最后一部分? 谢谢。
答案 0 :(得分:1)
最后的种子文件与3.mp4文件的最后一块文件相同吗?因此,通过下载最后一部分,我将对3.mp4文件的最后一部分进行贬低。
是
有没有一种方法可以同时定位2.mp4和1.mp4的最后一部分?
是
创建种子文件时,种子文件中的所有文件会串联在一起,然后分成多个块。
Select IIF(x.omlPartID in ('10027','10028'),x.omlPartID,x.jmaPartID) as PartID, Sum(Cast(Total_Quantity as INT)) as SumTot
From (SELECT distinct SalesOrderLines.omlsalesorderID, salesorderlines.omlSalesOrderLineID, SalesOrderLines.omlPartID, JobAssemblyMaterialCombo2 .jmaPartID, (IIF(rtrim(SalesOrderLines.omlPartID) in ('10027','10028'),1,JobAssemblyMaterialCombo2.jmaQuantityPerParent)*SalesOrderLines.omlOrderQuantity) As 'Total_Quantity'
FROM M1_HB.dbo.SalesOrderLines SalesOrderLines
Left Outer Join M1_HB.dbo.SalesOrderJobLinks SalesOrderJobLinks On SalesOrderLines.omlSalesOrderID = SalesOrderJobLinks.omjSalesOrderID AND SalesOrderlines.omlSalesOrderLineID = SalesOrderJobLinks.omjSalesOrderLineID
Left Outer Join M1_HB.dbo.Jobs Jobs on SalesOrderJobLinks.omjJobID = Jobs.jmpJobID
Left Outer Join M1_HB.dbo.JobAssemblyMaterialCombo2 JobAssemblyMaterialCombo2 On Jobs.jmpJobID = JobAssemblyMaterialCombo2 .jmaJobID
Left Outer Join M1_HB.dbo.SalesOrders SalesOrders On SalesOrderLines.omlSalesOrderID = SalesOrders.ompSalesOrderID
Left Outer Join M1_HB.dbo.Organizations Organizations On SalesOrders.ompCustomerOrganizationID = Organizations.cmoOrganizationID
WHERE JobAssemblyMaterialCombo2 .jmaPartID in ('10027','10028') or (SalesOrderLines.omlPartID in ('10027','10028') and JobAssemblyMaterialCombo2 .jmaPartID is Null)) x
Group by IIF(x.omlPartID in ('10027','10028'),x.omlPartID,x.jmaPartID)
.torrent文件中的元数据中;件大小,文件大小以及文件的确切顺序。
文件按它们在.torrent文件的 Select IIF(x.omlPartID in ('10027','10028'),x.omlPartID,x.jmaPartID) as PartID
, Sum(Cast(Total_Quantity as INT)) as SumTot
From (SELECT distinct sol.omlsalesorderID, salesorderlines.omlSalesOrderLineID
, sol.omlPartID, jamc2.jmaPartID, (IIF(rtrim(sol.omlPartID)
in ('10027','10028')
,1,jamc2jmaQuantityPerParent)*sol.omlOrderQuantity) As 'Total_Quantity'
FROM M1_HB.dbo.SalesOrderLines sol
Left Outer Join M1_HB.dbo.SalesOrderJobLinks sollink On sol.omlSalesOrderID = sollink.omjSalesOrderID
AND SalesOrderlines.omlSalesOrderLineID = sollink.omjSalesOrderLineID
Left Outer Join M1_HB.dbo.Jobs Jobs on sollink.omjJobID = Jobs.jmpJobID
Left Outer Join M1_HB.dbo.JobAssemblyMaterialCombo2 jamc2 On Jobs.jmpJobID = jamc2.jmaJobID
Left Outer Join M1_HB.dbo.SalesOrders so On sol.omlSalesOrderID = so.ompSalesOrderID
Left Outer Join M1_HB.dbo.Organizations org On so.ompCustomerOrganizationID = org.cmoOrganizationID
WHERE jamc2.jmaPartID in ('10027','10028') or (sol.omlPartID in ('10027','10028') and jamc2.jmaPartID is Null)) x
Group by IIF(x.omlPartID in ('10027','10028'),x.omlPartID,x.jmaPartID)
列表中显示的顺序排列。
顺序由洪流创建者决定,我可以是任意顺序。文件大小,磁盘顺序,字母顺序,随机,创建日期,名称长度等
根据这些数据,可以准确计算出特定文件的结尾和偏移量。