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

NyaaPantsu / nyaa / 8024
35%

Build:
DEFAULT BRANCH: dev
Ran 03 Jan 2018 08:27AM UTC
Jobs 1
Files 56
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
8024

push

travis-ci

ewhal
Upload to nyaa.si, anidex & TokyoTosho [done] (#1633)

* Update upload.go

* Update helpers.go

* Update template_test.go

* Update upload_multiple.jet.html

* change variable names

* wrong copypaste

* change variable name

* ditto

* Fix travis

* Update main.css

* Update upload.go

* Update upload.jet.html

* Update main.css

* Update upload.go

* More compact form

* CSS changes to go along

* Update main.css

* Update upload.jet.html

* Slightly lower bottom margin

* Update upload_multiple.jet.html

* tomorrow color adjustements

* small css adjustements

* Update upload.go

* Update default_config.yml

* Update default_config.yml

* Update structs.go

* Update user.go

* Update structs.go

* Update upload.go

* Update default_config.yml

* Update upload_multiple.jet.html

* Update upload.go

* Update upload.jet.html

* Update template_test.go

* this one is optional for anidex

* Update default_config.yml

* Possible improvement
As mentionned in my comment, it seems that having a checkbox already checked and disabled for logged in user + having the input text for apikey is a bit tedious.
Moreover, asking to check and fill the input text to upload in anidex when you are not logged is doing things twice. If you don't want to upload to anidex, don't fill the input.

So this commit push a new behaviour:
* If you are logged in and you have filled your anidex/nyaasi api key : the form should only show the checkbox asking if you want to upload to nyaasi.
* If you're not logged in or you don't have filled your api key in your profile settings: you only show the input text for the api key and not the checkbox. If someone wants to upload to nyaasi/anidex, he will just need to fill the input.

* This adds back the support of anonymous upload when logged in or not.
This works simply by checking if the user wants to upload as anon (when he checks the checkbox "upload as anony... (continued)

453 of 453 new or added lines in 8 files covered. (100.0%)

1468 of 4181 relevant lines covered (35.11%)

5.43 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
utils/upload/upload.go
1
100.0
utils/validator/torrent/helpers.go
8
100.0
config/structs.go
24
100.0
models/torrent.go
35
100.0
utils/validator/torrent/functions.go
48
100.0
utils/upload/generate.go
280
100.0
utils/upload/multi.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
templates/template_functions.go
1
100.0
utils/validator/torrent/helpers.go
Jobs
ID Job ID Ran Files Coverage
1 8024.1 03 Jan 2018 08:27AM UTC 0
35.11
Travis Job 8024.1
Source Files on build 8024
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #8024
  • d5c2c6b6 on github
  • Prev Build on dev (#8005)
  • Next Build on dev (#8028)
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