Git Product home page Git Product logo

Comments (1)

vooidzero avatar vooidzero commented on August 11, 2024

@Telloyee 感谢反馈。
斜杠的问题在开发最初的时候就考虑了:标题中的 \/:*?"<>| 会相应地替换为全角字符。

这里的问题其实是合成标题的时候末尾有空格,然后创建了一个末尾有空格的文件夹,之后在这个文件夹里创建文件失败(小提一句,这个在 Linux 平台上是没问题的)。

Release 已更新,请先删除该漫画下载任务以及文件夹(这文件夹好像不太好删?),然后才能在更新的版本下载该漫画


解决方法:在创建下载任务时移去标题开头和末尾的空格。

相关文件:utils.cpp

QString Utils::legalizedFileName(QString title)
{
-    return title.replace('\\', u'\').replace('/', u'/').replace(':', u':')
+    return title.simplified()
+            .replace('\\', u'\').replace('/', u'/').replace(':', u':')
             .replace('*', u'*').replace('?', u'?').replace('"', u'“')
             .replace('<', u'<').replace('>', u'>').replace('|', u'|');
}

from b23downloader.

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.