Files

3.9 KiB

Gallery-dl ComfyUI Node - Final Setup Guide

✅ Setup Complete!

Your Gallery-dl ComfyUI node is now fully configured with enhanced debugging and authentication support.

📋 Test Results Summary

  • Version: 1.29.7
  • Command-line access: ✅ Available

✅ Authentication Config: Working

  • Location: PDF_tools/configs/auth_config.json
  • Sites configured: 18 sites
  • Auth types supported: api_client, cookie, login, oauth, etc.
  • Sample sites working:
    • Reddit (api_client)
    • 500px (cookie)
    • DeviantArt (cookie)
  • Library: browser-cookie3 installed
  • Chrome access: Requires admin privileges (normal on Windows)
  • Debug output: Shows real-time cookie access status

✅ Debug Information: Working

  • Real-time status reporting
  • Auth config validation
  • Browser cookie testing
  • Detailed error messages

🚀 How to Use in ComfyUI

1. Basic Usage

  • Add "Gallery-dl Downloader" node to your workflow
  • Enter URLs in the url_list field
  • Set output_dir where you want files saved
  • Run the workflow

2. With Authentication

  • Leave auth_config_path as default: ./configs/auth_config.json
  • The node will automatically use your stored credentials
  • Check the summary output for debug information

3. With Browser Cookies

  • Enable use_browser_cookies
  • Choose your browser (Chrome, Firefox, etc.)
  • For Chrome: May need to run ComfyUI as administrator
  • Check summary for cookie access status

4. Debug Information

All runs now include debug output in the summary:

🔧 Debug Information:
✅ Auth config loaded successfully with 18 sites
🔑 Found auth config for domain: reddit.com  
🍪 Extracting cookies from chrome browser
✅ Chrome: Found 1247 cookies
📄 Using generated authentication config: /path/to/temp_config.json
⚡ Rate limiting: 1 second between requests, 3 retries on failure

🔧 Troubleshooting

Error: "This operation requires admin. Please run as admin." Solution:

  1. Close all Chrome windows completely
  2. Run ComfyUI as Administrator, OR
  3. Use Firefox instead (usually works without admin)

Auth Config Issues

Error: "Auth config file not found" Solutions:

  1. ✅ Use default path: ./configs/auth_config.json
  2. ✅ Use absolute path: A:\Comfy_Dec\ComfyUI\custom_nodes\PDF_tools\configs\auth_config.json
  3. ✅ Check file exists: Should be in PDF_tools/configs/ directory

Permission Errors

Fixed: Config files now stored locally in PDF_tools No more: Cross-directory permission issues

📁 File Locations

PDF_tools/
├── configs/
│   └── auth_config.json          ← Your authentication config
├── nodes/
│   └── gallery_dl_downloader.py  ← Enhanced node with debugging
└── Docs/
    ├── test_node_improvements.py ← Test script (working)
    ├── gallery_dl_downloader_README.md
    └── gallery_dl_authentication_guide.md

🎯 Next Steps

  1. Try a simple download:

    • URL: https://imgur.com/gallery/example
    • Check debug output in summary
  2. Test with authentication:

    • Try a Reddit URL if you have API credentials
    • Check for "🔑 Found auth config" in debug output
  3. Test browser cookies:

    • Enable browser cookies
    • Try a site you're logged into
    • Check for "✅ Found X cookies" in debug output
  4. Monitor status reports:

    • Always check the summary output
    • Debug information shows exactly what's happening
    • Use this for troubleshooting any issues

🎉 Success!

Your Gallery-dl node is now production-ready with:

  • ✅ Working authentication integration
  • ✅ Comprehensive debugging
  • ✅ Browser cookie support
  • ✅ Local configuration files
  • ✅ No permission issues

The node should work seamlessly in ComfyUI with full debug visibility!