hashworks / go-srrdb-api Goto Github PK
View Code? Open in Web Editor NEWA Golang package to download & upload SRR files from srrdb.com and to access their search API.
License: GNU General Public License v3.0
A Golang package to download & upload SRR files from srrdb.com and to access their search API.
License: GNU General Public License v3.0
Hi, I realise this is a bit old but I imagined it would still work, but I'm facing a issue.
I was trying to recompile to debug myself until I noticed the code for the CLI wrapper is not published? Might be that I'm a Go noob as well ๐
The issue I'm facing is this:
srrdb --username=realusername--password=realpassword --release=full.releasename.here-grouptoo --folder=Sample -u sample-the.release.SxxExx-group.srs
sample-the.release.SxxExx-group.srs: Failed to upload stored file - Failed to parse upload result.
I created a breakpoint on https://github.com/hashworks/go-srrdb-API/blob/v1.1.0/srrdb/srrdb.go#L241
Thread 7 "srrdb" hit Breakpoint 1, github.com/hashworks/go-srrdb-API/srrdb.UploadStoredFile (fp=..., dirname=..., folder=..., jar=0xc0000ff080, ~r4=...,
~r5=...) at /usr/local/go/pkg/mod/github.com/hashworks/[email protected]/srrdb/srrdb.go:241
241 /usr/local/go/pkg/mod/github.com/hashworks/[email protected]/srrdb/srrdb.go: No such file or directory.
(gdb) info locals
w = <optimized out>
bytes = {
array = 0xc00054e000 "<div style=\"white-space:nowrap;overflow:hidden;text-overflow:ellipsis;\">Add file to full.releasename.here-grouptoo</div>\r\n<form action=\"/release/add/full.releasename.here-grouptoo\" enc"..., len = 621, cap = 1536}
&b = 0xc0000ff110
f = 0xc0005c0150
err = {tab = 0x0, data = 0x0}
fw = <optimized out>
req = 0xc00013a300
client = 0xc00054e000
response = <optimized out>
res = <optimized out>
Did I do something wrong or is there a error in the script? Looks like we are seeing the dialog as if we were trying to add files manually.
Thanks!
$ srrdb -s Bughunter
Failed to search for query: json: cannot unmarshal number into Go struct field SearchResponse.resultsCount of type string
Looks like the SearchResponse
is no longer correct โ ResultCount
now finally seems to be a number, not a string.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.