Commits

Matt Joiner committed 8f92f91

Missing files.

Comments (0)

Files changed (2)

Empty file added.
+from .torrent import Torrent
+from .metainfo import Metainfo
+
+def open_data(metainfo, path):
+    from .data import MultipleFileTorrentData, SingleFileTorrentData
+    if metainfo.multi_file:
+        return MultipleFileTorrentData(
+            path,
+            metainfo.raw['info']['name'].decode(),
+            metainfo.raw['info']['files'],)
+    else:
+        return SingleFileTorrentData(
+            path,
+            metainfo.raw['info']['name'].decode(),
+            metainfo.raw['info']['length'])
+
+from .trackers import Tracker