Skip to content

Commit

Permalink
fix(trainbit): decode html code (#3883)
Browse files Browse the repository at this point in the history
  • Loading branch information
NightSpaceC authored Mar 19, 2023
1 parent 0231072 commit 3abe264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/trainbit/util.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package trainbit

import (
"html"
"io"
"net/http"
"net/url"
Expand Down Expand Up @@ -95,6 +96,7 @@ func local2provider(filename string, isFolder bool) string {
}

func provider2local(filename string) string {
filename = html.UnescapeString(filename)
index := strings.LastIndex(filename, ".delete_suffix")
if index != -1 {
filename = filename[:index]
Expand Down

0 comments on commit 3abe264

Please sign in to comment.