Transm...Torrent(3pm)

πŸ“¦
version 0.0806 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸŽ€ Transm...Torrent(3pm) πŸŽ€

okay so bestie, welcome to the User Contributed Perl Documentation page for this lil' torrent object ✨ it came in under the header Transm...Torrent(3pm) because the title got truncated and honestly? iconic of it. grab a snack, we're going through every single attribute together 🫢


πŸ“› NAME πŸ“›

Transmission::Torrent β€” a Transmission torrent object πŸŒ€


🌸 DESCRIPTION 🌸

hey so first things first, the original page tells you to go read "3.2 Torrent Mutators" and "3.3 Torrent accessors" over at:

https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt

that's the homework, bestie, go look πŸ“š

and then, the actual tea: this class handles data related to a torrent known to Transmission πŸ’– like, all the info about one specific torrent? that's this class's whole job. slay.


πŸ‘€ SEE ALSO πŸ‘€

  • Transmission::AttributeRole β€” go read that one too, it's giving supporting cast πŸ’œ

πŸ’… ATTRIBUTES πŸ’…

so the original splits these into two flavours and honestly it's giving setters vs getters. we're keeping that energy, and yes, some names show up in both lists. that's not a typo, that's just how the page is, periodt πŸ’€

πŸ”₯ the ones you can set (mutators) πŸ”₯

  • id β€” $id = $self->id; β†’ hands you back the id that identifies this torrent in transmission πŸ†”
  • bandwidth_priority β€” $self->bandwidth_priority($num); β†’ this torrent's bandwidth ✨
  • download_limit β€” $self->download_limit($num); β†’ the maximum download speed, and it's in K/s πŸ“‰
  • download_limited β€” $self->download_limited($bool); β†’ True if "downloadLimit" is honored πŸ’―
  • honors_session_limits β€” $self->honors_session_limits($bool); β†’ True if session upload limits are honored πŸ™Œ
  • location β€” $self->location($str); β†’ the new location of the torrent's content πŸ“
  • peer_limit β€” $self->peer_limit($num); β†’ maximum number of peers πŸ‘―
  • seed_ratio_limit β€” $self->seed_ratio_limit($num); β†’ session seeding ratio 🌱
  • seed_ratio_mode β€” $self->seed_ratio_mode($num); β†’ which ratio to use. see tr_ratiolimit πŸ”
  • upload_limit β€” $self->upload_limit($num); β†’ maximum upload speed, also in K/s πŸ“ˆ
  • upload_limited β€” $self->upload_limited($bool); β†’ True if "upload_limit" is honored βœ…

πŸ¦‹ the ones you just read (accessors) πŸ¦‹

ngl the original is on a minimalist streak down here β€” most of these are literally just the signature and nothing else, and we respect the brevity πŸ’–

  • activity_date β€” $num = $self->activity_date;
  • added_date β€” $num = $self->added_date;
  • bandwidth_priority β€” $num = $self->bandwidth_priority; (yep, again, she contains multitudes πŸ’…)
  • comment β€” $str = $self->comment;
  • corrupt_ever β€” $num = $self->corrupt_ever;
  • creator β€” $str = $self->creator;
  • date_created β€” $num = $self->date_created;
  • desired_available β€” $num = $self->desired_available;
  • done_date β€” $num = $self->done_date;
  • download_dir β€” $str = $self->download_dir;
  • downloaded_ever β€” $num = $self->downloaded_ever;
  • downloaders β€” $num = $self->downloaders;
  • download_limit β€” $num = $self->download_limit; (the getter twin of the setter above 🫢)
  • download_limited β€” $bool = $self->download_limited;
  • error β€” $num = $self->error;
  • error_string β€” $str = $self->error_string;
  • eta β€” $num = $self->eta;
  • hash_str β€” $str = $self->hash_string; ⚠️ heads up, the attribute is called hash_str but the call is hash_string. that's exactly what the original says, no cap, don't come for me 😭
  • have_unchecked β€” $num = $self->have_unchecked;
  • have_valid β€” $num = $self->have_valid;
  • honors_session_limits β€” $bool = $self->honors_session_limits;
  • is_private β€” $bool = $self->is_private; 🀫
  • leechers β€” $num = $self->leechers;
  • left_until_done β€” $num = $self->left_until_done;
  • manual_announce_time β€” $num = $self->manual_announce_time;
  • max_connected_peers β€” $num = $self->max_connected_peers;
  • name β€” $str = $self->name;
  • peer β€” $num = $self->peer;
  • peers_connected β€” $num = $self->peers_connected;
  • peers_getting_from_us β€” $num = $self->peers_getting_from_us;
  • peers_known β€” $num = $self->peers_known;
  • peers_sending_to_us β€” $num = $self->peers_sending_to_us;
  • percent_done β€” $num = $self->percent_done; πŸ“Š
  • pieces β€” $str = $self->pieces;
  • piece_count β€” $num = $self->piece_count;
  • piece_size β€” $num = $self->piece_size;
  • rate_download β€” $num = $self->rate_download;
  • rate_upload β€” $num = $self->rate_upload;
  • recheck_progress β€” $num = $self->recheck_progress;
  • seeders β€” $num = $self->seeders;
  • seed_ratio_limit β€” $num = $self->seed_ratio_limit;
  • seed_ratio_mode β€” $num = $self->seed_ratio_mode;
  • size_when_done β€” $num = $self->size_when_done;
  • start_date β€” $num = $self->start_date;
  • status β€” $str = $self->status;
  • swarm_speed β€” $num = $self->swarm_speed;
  • times_completed β€” $num = $self->times_completed;
  • total_size β€” $num = $self->total_size;
  • torrent_file β€” $str = $self->torrent_file;
  • uploaded_ever β€” $num = $self->uploaded_ever;
  • upload_limit β€” $num = $self->upload_limit;
  • upload_limited β€” $bool = $self->upload_limited;
  • upload_ratio β€” $num = $self->upload_ratio;
  • webseeds_sending_to_us β€” $num = $self->webseeds_sending_to_us;
  • files β€” this one's got two things going on, and it's giving overachiever:
$array_ref = $self->files;
$self->clear_files;

β†’ files returns an array of Transmission::Torrent::Files πŸ—‚οΈ (and clear_files is hanging out right under it, yes, we keep it, no we don't delete it)


πŸ› οΈ METHODS πŸ› οΈ

  • BUILDARGS β€” $hash_ref = $self->BUILDARGS(\%args); β†’ converts the keys in %args from "CamelCase" to "camel_case" πŸͺ➑️🐍
  • read β€” $bool = $self->read('id', 'name', 'eta'); this method will refresh all the requested attributes in one single RPC request. meanwhile if you call one and one attribute, you get one-and-one request. so like, batch them, bestie, your network will thank you πŸ“‘
  • read_all β€” $bool = $self->read_all; β†’ similar to "read", but it requests all the attributes. going feral, love that for her πŸ”₯
  • start β€” see Transmission::Client::start(). ▢️
  • stop β€” see Transmission::Client::stop(). ⏹️
  • verify β€” see Transmission::Client::verify(). πŸ”Ž
  • move β€” $bool = $self->move($path); β†’ will move the torrent content to $path πŸ“¦βž‘οΈπŸ“
  • write_wanted β€” $bool = $self->write_wanted; β†’ will write "wanted" information from "files" to transmission ✍️
  • write_priority β€” $bool = $self->write_priority; β†’ will write "priorty" information from "files" to transmission. and yes, it says "priorty" in the original, that is not me misspelling it, I am simply built different and I keep the facts exact πŸ’€

πŸ“œ LICENSE πŸ“œ

bestie. there is literally nothing under this heading in the original. empty. void. mysterious main character energy πŸ™ˆ we simply do not know, and I refuse to make something up.

✍️ AUTHOR ✍️

see Transmission::Client.


and that's the whole thing, you ate it πŸ’– this page is perl v5.36.0, dated 2022-10-16, and it lives in the User Contributed Perl Documentation β€” so if you enjoyed it, go read Transmission::Client and Transmission::AttributeRole next, they're the rest of the friend group πŸŒˆβ­πŸ’œ

πŸ“¦ where this page comes from