Skip to content

minor: merge train#214

Merged
wkaisertexas merged 26 commits intomainfrom
wkaisertexas/staging
Aug 16, 2025
Merged

minor: merge train#214
wkaisertexas merged 26 commits intomainfrom
wkaisertexas/staging

Conversation

@wkaisertexas
Copy link
Copy Markdown
Owner

multiple merges so the original authors did not have to make edits

RunarFosse and others added 26 commits July 23, 2025 15:22
- Add visibility parameter to upload functions with options: everyone, friends, only_you
- Implement visibility dropdown selector in upload process
- Add --visibility CLI flag for command-line uploads
- Update VideoDict type to include visibility field
- Add example scripts demonstrating private upload usage
- Add CLAUDE.md for repository documentation

The feature allows users to set video privacy when uploading:
- "everyone": Public video (default)
- "friends": Visible to friends only (followers you follow back)
- "only_you": Private video visible only to the uploader

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add tests for video dict conversion with visibility parameters
- Add validation tests for all visibility options (everyone, friends, only_you)
- Add unit tests for upload_video function with visibility parameter passing
- Add mocked tests for dropdown interaction in _set_visibility function
- Add type validation tests for VideoDict with visibility field

Tests ensure proper handling of private video upload functionality
across all layers of the application.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Replace bare  with specific exception types to follow
linting best practices and improve error handling specificity.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Apply consistent code formatting to all modified files:
- examples/private_upload.py
- src/tiktok_uploader/upload.py
- tests/test_upload.py

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Fix mypy type errors in tests and examples by properly typing variables
- Remove inappropriate use of type: ignore comments
- Update CLAUDE.md with complete CI workflow matching GitHub Actions
- Add proper type annotations for VideoDict usage
- Ensure all CI checks pass: linting, formatting, type checking, and tests

This commit ensures the codebase passes the complete CI pipeline
that matches the GitHub Actions workflow.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Through testing, identified that only one selector actually works:
//div[@ROLE='option' and contains(., 'Only you')]

Removed 40+ lines of complex fallback logic and multiple selector
attempts. The function now uses only the verified working selector,
making it faster, cleaner, and more maintainable.

- Removed unused selectors that never found elements
- Removed unnecessary fallback logic
- Kept same behavior and interface
- All tests still pass
- Verified working through actual TikTok uploads

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
feat: add private video upload capability
Add: Ability to upload custom cover
@wkaisertexas wkaisertexas merged commit ca78da3 into main Aug 16, 2025
2 checks passed
@wkaisertexas wkaisertexas deleted the wkaisertexas/staging branch August 16, 2025 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants