快捷搜索:

它的Demo演示还是有点问题,极佳网可以下载

来源:http://www.nhdnug.com 作者:动漫动画 人气:61 发布时间:2019-12-16
摘要:问题: 问题一 笔者目前比较关注的点是第三方框架中,删除指定下载任务的处理逻辑。 想做avm,但找遍全网都没有找到,不是失效就是因为版权问题无法下载,求大佬帮助。 地址 移

问题:

  1. 问题一

笔者目前比较关注的点是第三方框架中,删除指定下载任务的处理逻辑。

想做avm,但找遍全网都没有找到,不是失效就是因为版权问题无法下载,求大佬帮助。

  • 地址

  • 移除任务示例

回答:1,用VPN翻墙去日本银魂官网。

scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: cssselect>=0.9

2,去百度贴吧,里面的资源贴里有高清无字幕版

解决办法,下载cssselect

- tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { TaskModel *model=[_dataArray objectAtIndex:indexPath.row]; [[FGDownloadManager shredManager] removeForUrl:model.url file:model.destinationPath]; [_dataArray removeObjectAtIndex:indexPath.row]; [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic]; __weak typeof wkself=self; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{ [wkself.tbView reloadData]; }); });}

3,极佳网可以下载,不过会有点慢。

  1. 问题二

图片 1

我知道的就这么多,希望能帮到你

  • 问题移除的方法里边有bug 当其他任务在下载的时候 移除会导致无法暂停[[FGGDownloadManager shredManager] removeForUrl:model.url file:model.destinationPath];移除的时候下载队列出问题了

  • 问题地址

scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: lxml

解决办法:下载最新的适合你Pytohn版本的lxml

  • 地址

  • 移除任务示例

  1. 问题三
- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{ __weak HJDownloadListCell *weakCell = [tableView cellForRowAtIndexPath:indexPath]; __weak typeof weakSelf = self; UITableViewRowAction *action = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"删除" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { [tableView beginUpdates]; HJDownloadModel *downloadModel = weakCell.downloadModel; [kHJDownloadManager stopWithDownloadModel:weakSelf.datas[indexPath.row]]; [weakSelf.datas removeObject:downloadModel]; [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationBottom]; [tableView endUpdates]; }]; 
scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: queuelib

图片 2

解决方法:下载queuelib

  • 问题下载进度的回调可能有BUG:可能是这个回调不准_downloadModel.progressChanged。表现为:直到下载成功才直到下载了,下载中无法知道是否下载状态。
  1. 问题四

图片 3

  • 问题地址
scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: w3lib>=1.8.0

解决办法:下载w3lib

  • 地址

  • 删除任务示例

  1. 问题五
- tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ if (editingStyle == UITableViewCellEditingStyleDelete) { TCBlobDownloader *download = self.currentDownloads[indexPath.row]; [download cancelDownloadAndRemoveFile:YES]; NSInteger index = [self.currentDownloads indexOfObject:download]; UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0]]; [cell.detailTextLabel setText:[self subtitleForDownload:download]]; [cell setEditing:NO animated:YES]; }}
scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Twisted>=10.0.0

图片 4

解决办法:下载Twisted

  • 问题
  1. 问题六

它的Demo演示还是有点问题。添加了一个实际可下载的任务,还是无法下载。

  • 地址

  • 删除任务示例

scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: pyasn1-modules

解决办法:下载pyasn1-modules 以及pyasn1

- tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { [[MCDownloadManager defaultInstance] removeWithURL:self.urls[indexPath.row]]; [self.tableView reloadData]; }}
  1. 问题七

图片 5image.png

  • 问题
scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: characteristic>=14.0.0

它这个删除还是有点问题: 删除文件后,receipt 的标记还是 MCDownloadStateCompleted 。它的作者也新建了一个基于NSOperation的框架MCDownloader取代它。

解决办法:下载characteristic

图片 6

  1. 问题八
  • 地址

  • 移除任务示例

scrapy runspider stackoverflo
w_spider.py -o top-stackoverflow-questions.json
Traceback (most recent call last):
File "C:Python27Scriptsscrapy-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:Python27libsite-packagespkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:Python27libsite-packagespkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:Python27libsite-packagespkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: cryptography>=0.7
- tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { MCDownloadReceipt *receipt = [[MCDownloader sharedDownloader] downloadReceiptForURLString:[self urls][indexPath.row]]; [[MCDownloader sharedDownloader] remove:receipt completed:^{ [self.tableView reloadData]; }]; }}

解决办法:下载cryptography
和cffi。

图片 7

  • 问题无法下载HTTP的资源,会报错,解决办法可以是允许http连接。参考

图片 8

  • 地址

  • 移除下载任务

if (_downloadModel.state == TYDownloadStateReadying) { [manager cancleWithDownloadModel:_downloadModel]; return; }

图片 9

本文由9778818威尼斯官网发布于动漫动画,转载请注明出处:它的Demo演示还是有点问题,极佳网可以下载

关键词:

上一篇:没有了

下一篇:没有了

最火资讯