Mercurial > minori
comparison src/gui/pages/torrents.cc @ 221:53211cb1e7f5
library: add initial library stuff
nice
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 08 Jan 2024 13:21:08 -0500 |
parents | 01d259b9c89f |
children | 2f5a9247e501 |
comparison
equal
deleted
inserted
replaced
220:79a87a6dd39d | 221:53211cb1e7f5 |
---|---|
80 case Keys::COMMENT: | 80 case Keys::COMMENT: |
81 torrent.SetDescription(value); | 81 torrent.SetDescription(value); |
82 break; | 82 break; |
83 case Keys::SIZE: | 83 case Keys::SIZE: |
84 torrent.SetSize(Strings::HumanReadableSizeToBytes(value)); | 84 torrent.SetSize(Strings::HumanReadableSizeToBytes(value)); |
85 break; | |
86 case Keys::AUTHORIZED: | |
87 if (torrent.GetGroup().empty() && value != "N/A") | |
88 torrent.SetGroup(value); | |
85 break; | 89 break; |
86 default: | 90 default: |
87 break; | 91 break; |
88 } | 92 } |
89 } | 93 } |