Skip to content

Commit

Permalink
Change to official filterlists.com
Browse files Browse the repository at this point in the history
Looks like they broke the entire docker setup, so I hope CloudFlare no longer blocks GH Actions from the API
  • Loading branch information
xarantolus committed Jun 21, 2024
1 parent 3a4db91 commit 181eba4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/auto-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
with:
go-version: ^1.21

- name: Start FilterLists server
run: |
git clone https://github.com/collinbarrett/FilterLists --depth 1 FilterLists
cd FilterLists
docker compose -f docker-compose/docker-compose.yml -f docker-compose/docker-compose.override.yml up -d
- name: "Run generator tests"
shell: bash
run: |
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ jobs:
with:
go-version: ^1.21

- name: Start FilterLists server
run: |
git clone https://github.com/collinbarrett/FilterLists --depth 1 FilterLists
cd FilterLists
docker compose -f docker-compose/docker-compose.yml -f docker-compose/docker-compose.override.yml up -d
- name: "Run generator tests"
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions generate/cosmetic/filterlists/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ func fetchJSON(url string, target interface{}) (err error) {

// FetchLanguages fetches the list of languages available on FilterLists.com
func FetchLanguages() (languages []Language, err error) {
err = fetchJSON("http://localhost:8080/api/directory/languages", &languages)
err = fetchJSON("https://filterlists.com/api/directory/languages", &languages)
return
}

// FetchFilterLists fetches the list of filter lists available on FilterLists.com
func FetchFilterLists() (filterLists FilterLists, err error) {
err = fetchJSON("http://localhost:8080/api/directory/lists", &filterLists.Lists)
err = fetchJSON("https://filterlists.com/api/directory/lists", &filterLists.Lists)
return
}

0 comments on commit 181eba4

Please sign in to comment.