• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NyaaPantsu / nyaa / 6748
35%

Build:
DEFAULT BRANCH: dev
Ran 21 Oct 2017 07:54AM UTC
Jobs 1
Files 52
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6748

push

travis-ci

web-flow
Torrent Generation on not found error (#1600)

* [WIP] Torrent Generation on not found error
As asked in #1517, it allows on-the-fly torrent generation. Since it uses magnet links, it needs some time to connect to peers. So it can't be instant generation, we need the user to wait and try after a minute at least.

* Replace Fatal by simple error

* attempt at fixing travis

* del

* Add Anacrolyx dependency

* Add back difflib

* Remove .torrent suffix in the url example

* Add some explanations when file missing page shown

* Ignore downloads directory

* Either use cache (third-party site) or own download directory

* Wrong import

* If there is an error then it means we aren't generating a torrent file

May it be "torrent not found" or "We do not store torrent files" which are the two only existing errors for this page

* hash is never empty

* TorrentLink may be empty at times

So we add a /download/:hash link if it is

* Update README.md

* Made a mistake here, need to check if false

* Update en-us.all.json

* Update CHANGELOG.md

* Torrent file generation can be triggered by click on button if JS enabled

* Update download.go

* Update download.go

* Use c.JSON instead of text/template

* Return to default behavior if we don't generate the file

* Don't do the query if returned to default behavior

* Add "Could not generate torrent file" error

* Fix JS condition & lower delay until button updates

* Start download automatically once torrent file is generated

* Fix torrentFileExists() constantly returning false if external torrent download URL

* torrent-view-data is two tables instead of one

This allows the removal of useless things without any problem (e.g Website link), but also a better responsibe design since the previous one separated stats after a certain res looking very wonky

* CSS changes to go along

* Remove useless <b></b>

* Update main.css

* In torrentFileE... (continued)

6 of 6 new or added lines in 2 files covered. (100.0%)

1398 of 3550 relevant lines covered (39.38%)

6.12 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
100.0
models/torrent.go
1
100.0
templates/template_functions.go

Coverage Regressions

Lines Coverage ∆ File
1
100.0
templates/template_functions.go
Jobs
ID Job ID Ran Files Coverage
1 6748.1 21 Oct 2017 07:54AM UTC 0
39.38
Travis Job 6748.1
Source Files on build 6748
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6748
  • b2b48f61 on github
  • Prev Build on dev (#6687)
  • Next Build on dev (#6752)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc