diff --git a/.github/workflows/douban_movie.yml b/.github/workflows/douban_movie.yml index 5c631a69f2..0ca7ef4b58 100644 --- a/.github/workflows/douban_movie.yml +++ b/.github/workflows/douban_movie.yml @@ -10,7 +10,8 @@ jobs: runs-on: ubuntu-latest env: NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} - NOTION_PAGE: ${{ secrets.NOTION_PAGE }} + NOTION_MOVIE_URL: ${{ secrets.NOTION_MOVIE_URL }} + NOTION_BOOK_URL: ${{ secrets.NOTION_BOOK_URL }} YEAR: ${{ vars.YEAR }} REPOSITORY: ${{ github.repository }} steps: diff --git a/scripts/douban.py b/scripts/douban.py index aa68233bcc..eaccc17959 100644 --- a/scripts/douban.py +++ b/scripts/douban.py @@ -261,6 +261,8 @@ def insert_book(): type = options.type is_movie = True if type=="movie" else False notion_url = os.getenv("NOTION_MOVIE_URL") if is_movie else os.getenv("NOTION_BOOK_URL") + print(f"is_movie {is_movie}") + print(f"notion_url {notion_url}") notion_helper = NotionHelper(notion_url) douban_name = os.getenv("DOUBAN_NAME", None) if is_movie: