diff --git a/Dockerfile b/Dockerfile index 46f7d34..9e8f046 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,6 @@ COPY --from=volume /db/torrents.csv /app/ COPY --from=volume /db/torrent_files.json /app/ COPY scripts /app/scripts WORKDIR /app/scripts/ -RUN ["/bin/bash", "-c", "/app/scripts/build_sqlite.sh"] +RUN ["/bin/bash", "./build_sqlite.sh"] EXPOSE 8080 WORKDIR /app/ diff --git a/new_torrents_fetcher/src/cf.py b/new_torrents_fetcher/src/cf.py index 2d43733..ae55443 100644 --- a/new_torrents_fetcher/src/cf.py +++ b/new_torrents_fetcher/src/cf.py @@ -1,8 +1,8 @@ -import cfscrape +import cloudscraper request = "GET / HTTP/1.1\r\n" -cookie_value, user_agent = cfscrape.get_cookie_string("https://itorrents.org/torrent/B415C913643E5FF49FE37D304BBB5E6E11AD5101.torrent") +cookie_value, user_agent = cloudscraper.get_cookie_string("https://itorrents.org/torrent/B415C913643E5FF49FE37D304BBB5E6E11AD5101.torrent") request += "Cookie: %s\r\nUser-Agent: %s\r\n" % (cookie_value, user_agent) # cookie = "Cookie: %s" % (cookie_value) -print (request) \ No newline at end of file +print (request) diff --git a/server/service/Cargo.lock b/server/service/Cargo.lock index 6e8d7ec..441f35b 100644 --- a/server/service/Cargo.lock +++ b/server/service/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "actix" version = "0.7.5"