Skip to main content

Helper for creating adult torrents

Project description

clips2share

Clips2share helps you with the process of creating torrents for uploading adult clips to your favorite torrent tracker:

  • extract all metadata from a user provided clips4sale link (title, description, tags, price, clip quality, and more)
  • embed all these data using a template in the torrents metadata
  • download header image from clips4sale and upload to an image hoster
  • create thumbnails from local clip using vcsi library and upload to image hoster
  • create the final torrent with torf lib and send it to qbittorrent
  • allows uploading to multiple trackers

Installation

Install clips2share with pip

pip install clips2share

And make sure that ffmpeg is installed, then run clips2share from commandline:

clips2share

The first run will tell you to download and install the config.ini to your 'user_config_dir'.

Configuration

This is an example config.ini

[default]
torrent_temp_dir = /home/user/qBittorrent/
qbittorrent_upload_dir = /home/user/qBittorrent/Uploads/
qbittorrent_watch_dir = /home/user/qBittorrent/Uploads/_autoadd/
static_tags = clips4sale.com
delayed_seed = True

[tracker:empornium]
announce_url = http://tracker.empornium.sx:2710/YOURPASSKEY/announce
source_tag = Emp
category = Straight
Default Settings Description
torrent_temp_dir Directory where the torrent is placed, ready to be uploaded to the tracker
qbittorrent_upload_dir Directory where the upload files are created
qbittorrent_watch_dir Directory where the torrent is moved to get automatically seeded
static_tags Tags to be added to every torrent
delayed_seed If true, wait for user input and delay seed to prevent announcing an unknown torrent to tracker
Tracker Settings Description
announce_url Tracker announce url
source_tag Tracker specific source tag added to the torrent
category Tracker specific category, added as tag

Usage/Examples

Example usage below (user wants to upload /tmp/my_video.mp4 and needs to provide only the path to local clip and the c4s link):

clips2share

[Tracker(announce_url='http://tracker.empornium.sx:2710/yourpasskey/announce', category='Straight', source_tag='Emp')]

Video Path: /tmp/my_video.mp4

https://www.clips4sale.com/clips/search/my_video/category/0/storesPage/1/clipsPage/1

C4S Url: https://www.clips4sale.com/studio/12345/54321/my-video-1080p

C4SData(title='My Video 1080p', studio='C4S Studio', price='$14.99 USD', date='3/1/25 1:23 AM', duration='15 min', size='1693 MB', format='mp4', resolution='1080p', description='The C4S Clip Description', category='POV', related_categories=['Glove', 'Leather Gloves', 'Play'], keywords=['Straight', 'POV'], url='https://www.clips4sale.com/studio/12345/54321/my-video-1080p', image_url='https://imagecdn.clips4sale.com/accounts123/54321/clip_images/previewlg_12345.jpg')
Processing /tmp/my_video.mp4...
Sampling... 16/16
Composing contact sheet...
Cleaning up temporary files...
creating torrent for Emp... Torrent(path=PosixPath('/tmp/upload/my_video'), name='My Video 1080p', trackers=[['http://tracker.empornium.sx:2710/yourpasskey/announce']], private=True, source='Emp', piece_size=2097152)
[/tmp/upload/my_video]   0 % done
[/tmp/upload/my_video] 100 % done
upload torrent to tracker Emp, than hit enter to autoload to qBittorrent...

Environment Variables

This optional environment variable allows to overwrite the path to the config (will be preferred instead of the user_config_dir)

C2S_CONFIG_PATH: /path/to/config.ini

Contributing

Contributions are always welcome!

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clips2share-0.0.7.tar.gz (745.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clips2share-0.0.7-py3-none-any.whl (743.1 kB view details)

Uploaded Python 3

File details

Details for the file clips2share-0.0.7.tar.gz.

File metadata

  • Download URL: clips2share-0.0.7.tar.gz
  • Upload date:
  • Size: 745.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for clips2share-0.0.7.tar.gz
Algorithm Hash digest
SHA256 79aa7d0327879d78dc1a36879fab50aca14a2e23b4408c4ba5daf6ebd8f7530b
MD5 0319d1969e3556b39f94274d038c1342
BLAKE2b-256 b43d0f7e1fb72dda8cfe5d5ae8531da0d2099e8b15f80d0ab695f7c8d6ffb60a

See more details on using hashes here.

File details

Details for the file clips2share-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: clips2share-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 743.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for clips2share-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 29bd60c5ec7b4ed40f871ae58698e82d36544cc3e04a8d9284f9f15c3eefb3cf
MD5 bb29f843a93476f2f612cff3a448bfad
BLAKE2b-256 7d67c3550de2efdb3817591438e0d2dbf125b3b72174a31c1feb281a9e4ff1f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page