Update README.md
This commit is contained in:
		
							parent
							
								
									31cab01151
								
							
						
					
					
						commit
						7e14fdd29b
					
				@ -19,7 +19,7 @@ Getting list of files inside torrent is straightforward:
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
import xbmc 
 | 
			
		||||
from torrent2http import State, Engine, MediaType
 | 
			
		||||
from pyrrent2http import State, Engine, MediaType
 | 
			
		||||
from contextlib import closing
 | 
			
		||||
 | 
			
		||||
# Create instance of Engine 
 | 
			
		||||
@ -42,7 +42,7 @@ with closing(engine):
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
import xbmc 
 | 
			
		||||
from torrent2http import State, Engine, MediaType
 | 
			
		||||
from pyrrent2http import State, Engine, MediaType
 | 
			
		||||
from contextlib import closing
 | 
			
		||||
 | 
			
		||||
# XBMC addon handle
 | 
			
		||||
@ -106,7 +106,3 @@ with closing(engine):
 | 
			
		||||
            xbmc.sleep(500)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Fully working example ###
 | 
			
		||||
 | 
			
		||||
You can look into fully working [example](https://github.com/anteo/plugin.video.okino/blob/master/resources/lib/okino/torrent/stream/t2h_stream.py). This is
 | 
			
		||||
excerpt from my plugin using script.module.torrent2http. It rather complicated but it includes error handling, showing progress dialog and other features.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user